fix: restore burden meter colors

This commit is contained in:
Erik 2026-03-13 11:17:45 +01:00
parent 8bea346a57
commit b318c04fd6
2 changed files with 4 additions and 3 deletions

View file

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