From 08034ea9a73168e47154f87da5412514242f09e5 Mon Sep 17 00:00:00 2001 From: DJObleezy Date: Fri, 11 Apr 2025 22:47:01 -0700 Subject: [PATCH] Enhance profit color visibility in updateUI function Updated the `style.color` property for negative profit elements in the `updateUI` function to include the `!important` flag. This change ensures that the red color (`#ff5555`) takes precedence over conflicting styles, improving the visibility of negative profit indicators in the user interface. --- static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 14b64d5..b1520e3 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1224,7 +1224,7 @@ function updateUI() { if (dailyProfitElement) { dailyProfitElement.textContent = "$" + numberWithCommas(dailyProfitUSD.toFixed(2)); if (dailyProfitUSD < 0) { - dailyProfitElement.style.color = "#ff5555"; + dailyProfitElement.style.color = "#ff5555 !important"; } else { dailyProfitElement.style.color = ""; // Reset to default color } @@ -1236,7 +1236,7 @@ function updateUI() { if (monthlyProfitElement) { monthlyProfitElement.textContent = "$" + numberWithCommas(monthlyProfitUSD.toFixed(2)); if (monthlyProfitUSD < 0) { - monthlyProfitElement.style.color = "#ff5555"; + monthlyProfitElement.style.color = "#ff5555 !important"; } else { monthlyProfitElement.style.color = ""; // Reset to default color }