Fix clipped Daily Cost chart tooltip on Usage settings#55
Merged
mgoldsborough merged 2 commits intomainfrom Apr 20, 2026
Merged
Fix clipped Daily Cost chart tooltip on Usage settings#55mgoldsborough merged 2 commits intomainfrom
mgoldsborough merged 2 commits intomainfrom
Conversation
The hover tooltip in CostChart sits inside a <Card>, which has overflow-hidden in its base styles — so the tooltip was being clipped at the card edge and appearing to sit behind the next card below it. Override overflow on just this card.
QA follow-up on #55: - Anchor the tooltip to the closer edge (0% or -100% transform) when the hovered bar is within 15% of either chart boundary. Without this, the fixed translate(-50%, 0) anchor lets the popover spill past the card now that overflow is visible. - Bump tooltip z-index to z-20 as belt-and-suspenders against future sibling cards that might introduce their own stacking contexts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/settings/usagewas clipped at the card edge and appeared to sit behind the next card.Cardstyles inweb/src/components/ui/card.tsxincludeoverflow-hidden, which clips the absolutely-positioned tooltip once it extends past the card bounds.className="overflow-visible"on just the Daily Cost card so its tooltip can overflow.Test plan
/settings/usageand hover each bar in the Daily Cost chart — full tooltip (including 'Total' and calls line) renders on top, not clipped by the card below.