From c3f5450e0d279737595412363da9eff76a6cf846 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 13 Mar 2026 11:26:35 +0100 Subject: [PATCH] fix: force burden meter visibility --- static/script.js | 9 +++++++++ static/style.css | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index 39e13406..65a2f0ad 100644 --- a/static/script.js +++ b/static/script.js @@ -1386,9 +1386,18 @@ function renderInventoryState(state) { state.burdenLabel.title = burdenUnits > 0 && encumbranceCapacity > 0 ? `${burdenUnits}/${encumbranceCapacity}` : ''; + state.burdenLabel.style.color = '#ffffff'; + state.burdenLabel.style.zIndex = '3'; state.burdenFill.style.height = `${Math.min(100, burdenPct / 2)}%`; state.burdenFill.style.minHeight = burdenPct > 0 ? '2px' : '0'; state.burdenFill.className = 'inv-burden-fill'; + state.burdenFill.style.background = burdenPct > 150 + ? '#b7432c' + : burdenPct > 100 + ? '#d8a431' + : '#2e8b57'; + state.burdenFill.style.opacity = '1'; + state.burdenFill.style.borderTop = '1px solid rgba(255,255,255,0.18)'; if (burdenPct > 150) { state.burdenFill.classList.add('is-danger'); } else if (burdenPct > 100) { diff --git a/static/style.css b/static/style.css index 43967337..9e3f3e34 100644 --- a/static/style.css +++ b/static/style.css @@ -821,13 +821,14 @@ body.noselect, body.noselect * { .inv-burden-bar { width: 16px; height: 40px; - background: #0a0a0a; + background: #060606; border: 1px solid var(--ac-border-light); position: relative; overflow: hidden; margin-bottom: 2px; margin-top: 12px; flex-shrink: 0; + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); } .inv-burden-fill { @@ -840,6 +841,7 @@ body.noselect, body.noselect * { height: 0%; transition: height 0.3s ease; z-index: 1; + display: block; } .inv-burden-fill.is-safe {