diff --git a/web/src/routes/dashboard/+page.svelte b/web/src/routes/dashboard/+page.svelte index 017360a..48b67d9 100644 --- a/web/src/routes/dashboard/+page.svelte +++ b/web/src/routes/dashboard/+page.svelte @@ -154,6 +154,8 @@ {@const _bonus = u.shared_allowance_bonus_micros} {@const _private = u.private_reservation_micros} {@const _sharedCap = _floor + _bonus} + {@const _inCap = Math.min(_sharedUsed, _sharedCap) + (_private > 0 ? Math.min(_privateUsed, _private) : 0)} + {@const _ov = Math.max(0, _sharedUsed - _sharedCap) + Math.max(0, _privateUsed - _private)} {@const _total = Math.max(_sharedCap + _private, _sharedUsed + _privateUsed) || 1} {@const _usedW = (Math.min(_sharedUsed, _sharedCap) / _total) * 100} {@const _floorRemW = (Math.max(0, _floor - _sharedUsed) / _total) * 100} @@ -199,41 +201,70 @@ {/if}