Files
sub2api/frontend/src
Yakun WuandClaude Opus 5.5 5d3ec1aa16 fix(usage): keep token/cost detail tooltips inside the viewport
The token and cost detail tooltips in the usage table were always placed
8px to the right of the info icon. On narrow (mobile) screens the cost
column sits near the right edge, so the non-wrapping tooltip was cut off.

After rendering, measure the tooltip: flip it to the left of the icon when
it does not fit on the right, pin it to the right edge when neither side
fits, and clamp it vertically to the viewport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 15:22:26 +08:00
..