Fix collapsed toast stack height and text wrapping overflow#171
Merged
juliusmarminge merged 1 commit intomainfrom Mar 5, 2026
Merged
Fix collapsed toast stack height and text wrapping overflow#171juliusmarminge merged 1 commit intomainfrom
juliusmarminge merged 1 commit intomainfrom
Conversation
- Use the larger of shared stack height and per-toast height to avoid clipping - Make toast content columns flexible with `min-w-0` and `break-words` - Keep action buttons from shrinking so long text wraps instead of overflowing
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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
--toast-calc-heightas the max of shared front-most height and each toast’s own heightmin-w-0,flex-1, andbreak-wordsin toast content rowsshrink-0Testing
Note
Low Risk
Low risk UI-only change that tweaks toast CSS variables and flex layout to avoid clipping/overflow; potential impact is limited to toast rendering and animations.
Overview
Fixes collapsed toast stack clipping by changing
--toast-calc-heightto use the max of Base UI’s shared front-most height and each toast’s own--toast-height.Improves resilience to long titles/descriptions by adding
min-w-0,flex-1, andbreak-wordsto toast content containers, and keeps action buttons visible by applyingshrink-0(applied to both standard and anchored toast variants).Written by Cursor Bugbot for commit 9c1df87. This will update automatically on new commits. Configure here.
Note
Fix collapsed toast stack height and text wrapping in
ToastsandAnchoredToastsin toast.tsx to prevent overflowAdjust
--toast-calc-heightto usemax()of shared front-most height and per-toast height; addmin-w-0,flex-1, andbreak-wordsto content, title, and description; preventToast.Actionfrom shrinking withshrink-0and wrapclassNamewithcn(...).📍Where to Start
Start with the
Toastscomponent height calculation and layout changes in toast.tsx.Macroscope summarized 9c1df87.