From eab3e89a11c836e114deaa6c4411f98757ee5b87 Mon Sep 17 00:00:00 2001 From: DJObleezy Date: Mon, 21 Apr 2025 10:17:33 -0700 Subject: [PATCH] Update spacing for block odds in UI Increased margin-left for the `probSpan` element in the `updateUI` function from 10px to 17px for better spacing. Removed the inline margin-left style from the `block_odds_3hr` span in `dashboard.html`, promoting a more consistent style management through JavaScript. --- static/js/main.js | 2 +- templates/dashboard.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 027fe80..29a09c5 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1364,7 +1364,7 @@ function updateUI() { const probSpan = document.createElement("span"); probSpan.id = "block_odds_3hr"; probSpan.className = "metric-value yellow"; - probSpan.style.marginLeft = "10px"; + probSpan.style.marginLeft = "17px"; probSpan.style.fontSize = "0.75em"; // Slightly larger font size probSpan.style.fontWeight = "Normal"; // Normal font probSpan.textContent = blockProbability; diff --git a/templates/dashboard.html b/templates/dashboard.html index 9721367..94d0f15 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -159,8 +159,6 @@ {% endif %} - - [₿ Odds]

10min Avg Hashrate: