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}` ? `${burdenUnits}/${encumbranceCapacity}`
: ''; : '';
state.burdenFill.style.height = `${Math.min(100, burdenPct / 2)}%`; 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.className = 'inv-burden-fill';
if (burdenPct > 150) { if (burdenPct > 150) {
state.burdenFill.classList.add('is-danger'); state.burdenFill.classList.add('is-danger');

View file

@ -839,15 +839,15 @@ body.noselect, body.noselect * {
} }
.inv-burden-fill.is-safe { .inv-burden-fill.is-safe {
background: var(--ac-green); background: var(--ac-green) !important;
} }
.inv-burden-fill.is-warning { .inv-burden-fill.is-warning {
background: #d8a431; background: #d8a431 !important;
} }
.inv-burden-fill.is-danger { .inv-burden-fill.is-danger {
background: #b7432c; background: #b7432c !important;
} }
.inv-burden-label { .inv-burden-label {