fix: unclip burden meter label and fill
This commit is contained in:
parent
c3f5450e0d
commit
ca88f90476
2 changed files with 5 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue