fix: unclip burden meter label and fill

This commit is contained in:
Erik 2026-03-13 16:26:22 +01:00
parent c3f5450e0d
commit ca88f90476
2 changed files with 5 additions and 4 deletions

View file

@ -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'