From ca88f904765713836c0f8097aba5ed9ffb3ab75c Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 13 Mar 2026 16:26:22 +0100 Subject: [PATCH] fix: unclip burden meter label and fill --- static/script.js | 6 +++--- static/style.css | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/static/script.js b/static/script.js index 65a2f0ad..b92e4a12 100644 --- a/static/script.js +++ b/static/script.js @@ -1388,10 +1388,10 @@ function renderInventoryState(state) { : ''; 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.style.height = `${Math.min(100, burdenPct)}%`; + state.burdenFill.style.minHeight = burdenPct > 0 ? '3px' : '0'; state.burdenFill.className = 'inv-burden-fill'; - state.burdenFill.style.background = burdenPct > 150 + state.burdenFill.style.backgroundColor = burdenPct > 150 ? '#b7432c' : burdenPct > 100 ? '#d8a431' diff --git a/static/style.css b/static/style.css index 9e3f3e34..80d12f17 100644 --- a/static/style.css +++ b/static/style.css @@ -824,7 +824,7 @@ body.noselect, body.noselect * { background: #060606; border: 1px solid var(--ac-border-light); position: relative; - overflow: hidden; + overflow: visible; margin-bottom: 2px; margin-top: 12px; flex-shrink: 0; @@ -842,6 +842,7 @@ body.noselect, body.noselect * { transition: height 0.3s ease; z-index: 1; display: block; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); } .inv-burden-fill.is-safe {