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.color = '#ffffff';
state.burdenLabel.style.zIndex = '3'; state.burdenLabel.style.zIndex = '3';
state.burdenFill.style.height = `${Math.min(100, burdenPct / 2)}%`; state.burdenFill.style.height = `${Math.min(100, burdenPct)}%`;
state.burdenFill.style.minHeight = burdenPct > 0 ? '2px' : '0'; state.burdenFill.style.minHeight = burdenPct > 0 ? '3px' : '0';
state.burdenFill.className = 'inv-burden-fill'; state.burdenFill.className = 'inv-burden-fill';
state.burdenFill.style.background = burdenPct > 150 state.burdenFill.style.backgroundColor = burdenPct > 150
? '#b7432c' ? '#b7432c'
: burdenPct > 100 : burdenPct > 100
? '#d8a431' ? '#d8a431'

View file

@ -824,7 +824,7 @@ body.noselect, body.noselect * {
background: #060606; background: #060606;
border: 1px solid var(--ac-border-light); border: 1px solid var(--ac-border-light);
position: relative; position: relative;
overflow: hidden; overflow: visible;
margin-bottom: 2px; margin-bottom: 2px;
margin-top: 12px; margin-top: 12px;
flex-shrink: 0; flex-shrink: 0;
@ -842,6 +842,7 @@ body.noselect, body.noselect * {
transition: height 0.3s ease; transition: height 0.3s ease;
z-index: 1; z-index: 1;
display: block; display: block;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
} }
.inv-burden-fill.is-safe { .inv-burden-fill.is-safe {