From b318c04fd61a5b53944a4f798556f24cfece38bc Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 13 Mar 2026 11:17:45 +0100 Subject: [PATCH] fix: restore burden meter colors --- static/script.js | 1 + static/style.css | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/script.js b/static/script.js index 909f1cec..39e13406 100644 --- a/static/script.js +++ b/static/script.js @@ -1387,6 +1387,7 @@ function renderInventoryState(state) { ? `${burdenUnits}/${encumbranceCapacity}` : ''; state.burdenFill.style.height = `${Math.min(100, burdenPct / 2)}%`; + state.burdenFill.style.minHeight = burdenPct > 0 ? '2px' : '0'; state.burdenFill.className = 'inv-burden-fill'; if (burdenPct > 150) { state.burdenFill.classList.add('is-danger'); diff --git a/static/style.css b/static/style.css index f4bf1ae1..fda96a06 100644 --- a/static/style.css +++ b/static/style.css @@ -839,15 +839,15 @@ body.noselect, body.noselect * { } .inv-burden-fill.is-safe { - background: var(--ac-green); + background: var(--ac-green) !important; } .inv-burden-fill.is-warning { - background: #d8a431; + background: #d8a431 !important; } .inv-burden-fill.is-danger { - background: #b7432c; + background: #b7432c !important; } .inv-burden-label {