mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
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>