fix: restore burden meter colors
This commit is contained in:
parent
8bea346a57
commit
b318c04fd6
2 changed files with 4 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue