From 2b3e57b565a3ba8211f4c6a297e4fa36b1244302 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Sat, 29 Mar 2025 07:04:48 +1100 Subject: [PATCH] Removed the background color for Fourthwall Order Placed alerts --- multichat-overlay/script.js | 9 +++++---- multichat-overlay/style.css | 7 +++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index 2deaeef..2268fc3 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -1375,7 +1375,7 @@ function FourthwallOrderPlaced(data) { const contentDiv = instance.querySelector("#content"); // Set the card background colors - cardDiv.classList.add('fourthwall'); + cardDiv.classList.add('blank'); titleDiv.classList.add('centerThatShitHomie'); contentDiv.classList.add('centerThatShitHomie'); @@ -1412,12 +1412,13 @@ function FourthwallOrderPlaced(data) { else contents = ` (${orderTotal} ${currency})`; - console.log(contents); - titleDiv.innerHTML = contents; - if (message != null) + // Add the custom message from the user + if (message.trim() != "") contentDiv.innerHTML = `${message}`; + else + contentDiv.style.display = 'none' AddMessageItem(instance, data.id); } diff --git a/multichat-overlay/style.css b/multichat-overlay/style.css index 0a711d6..e7a45d0 100644 --- a/multichat-overlay/style.css +++ b/multichat-overlay/style.css @@ -232,8 +232,11 @@ li { } .fourthwall { - /* background: linear-gradient(#405eb3, #0d3cb9) !important; */ - background: #adadad46 !important; + background: linear-gradient(#405eb3, #0d3cb9) !important; +} + +.blank { + background: #adadad00 !important; } /****************/