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.
This commit is contained in:
DJObleezy 2025-04-21 10:17:33 -07:00
parent 7267244e94
commit eab3e89a11
2 changed files with 1 additions and 3 deletions

View File

@ -1364,7 +1364,7 @@ function updateUI() {
const probSpan = document.createElement("span"); const probSpan = document.createElement("span");
probSpan.id = "block_odds_3hr"; probSpan.id = "block_odds_3hr";
probSpan.className = "metric-value yellow"; probSpan.className = "metric-value yellow";
probSpan.style.marginLeft = "10px"; probSpan.style.marginLeft = "17px";
probSpan.style.fontSize = "0.75em"; // Slightly larger font size probSpan.style.fontSize = "0.75em"; // Slightly larger font size
probSpan.style.fontWeight = "Normal"; // Normal font probSpan.style.fontWeight = "Normal"; // Normal font
probSpan.textContent = blockProbability; probSpan.textContent = blockProbability;

View File

@ -159,8 +159,6 @@
{% endif %} {% endif %}
</span> </span>
<span id="indicator_hashrate_3hr"></span> <span id="indicator_hashrate_3hr"></span>
<span id="block_odds_3hr" class="metric-value yellow" style="margin-left: 10px; font-size: 0.75em; font-weight: normal;"></span>
<span class="metric-label" style="font-size: 0.65em; opacity: 0.8; margin-left: 5px; color: white;">[₿ Odds]</span>
</p> </p>
<p> <p>
<strong>10min Avg Hashrate:</strong> <strong>10min Avg Hashrate:</strong>