## Problem
On mobile, the sparkline tooltip on the dashboard account cards covered
almost the entire card, making it very hard to dismiss — you had to tap
very specific spots inside the card to clear it.
## Fix
Listen for `pointerdown` events outside the chart wrapper and unmount
the Recharts `<Tooltip>` to dismiss it. Because only the Tooltip is
toggled (not `<Line>`), there's no redraw animation.
Gated behind `matchMedia('(hover: hover)')` so desktop hover behavior is
left alone — tooltip still appears on hover without any click needed.
Works across multiple cards: tapping one dismisses tooltips on all
others.
|
||
|---|---|---|
| .. | ||
| account-balance-card.tsx | ||
| account-type-icon.tsx | ||
| amount-trend-indicator.tsx | ||
| cashflow-summary-card.tsx | ||
| net-worth-chart.tsx | ||
| percentage-trend-indicator.tsx | ||
| top-categories-card.tsx | ||