diff --git a/web/src/routes/dashboard/+page.svelte b/web/src/routes/dashboard/+page.svelte index 8983003..189dbf7 100644 --- a/web/src/routes/dashboard/+page.svelte +++ b/web/src/routes/dashboard/+page.svelte @@ -26,6 +26,10 @@ let recomputing = $state(false); let recomputeCooldown = $state(false); + // Fixed-position usage tooltip (escapes overflow-x: auto clipping) + let tipHoverId = $state(null); + let tipPos = $state<{ top: number; left: number } | null>(null); + async function handleRecompute() { if (recomputing || recomputeCooldown) return; recomputing = true; @@ -182,7 +186,9 @@ {pct(u.share_fraction)} - + { const r = e.currentTarget.getBoundingClientRect(); tipHoverId = u.user_id; tipPos = { top: r.top - 8, left: r.left + r.width / 2 }; }} + onmouseleave={() => { tipHoverId = null; tipPos = null; }}>
{trim(formatUSD(u.shared_spent_today_micros + u.private_spent_today_micros))} @@ -201,7 +207,8 @@ {#if _privateOverW > 0}
{/if} {/if}
-