fix(ui): prevent header compression in component preview overlay at 1024 - 1120px#90
Open
72umesh wants to merge 1 commit intoWatermelonCorp:mainfrom
Open
fix(ui): prevent header compression in component preview overlay at 1024 - 1120px#9072umesh wants to merge 1 commit intoWatermelonCorp:mainfrom
72umesh wants to merge 1 commit intoWatermelonCorp:mainfrom
Conversation
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.
Description
In the component preview overlay toolbar, the header section (Preview/Code tabs, variant toggle, and action buttons) was getting visually compressed/squished at certain desktop breakpoints, specifically between approximately 1024px and 1110px.
Root cause: The flex layout with
justify-betweenallowed elements to shrink when the container width was tight, even though it looked fine below 1024px and above ~1110px.What I Improved:
shrink-0to key flex children (TabsList, variant toggle, and actions group) to prevent unwanted compression.min-[1120px]and above.This results in a clean, non-squished layout across all breakpoints without horizontal overflow.
Fixes # (issue)
Type of change
How Has This Been Tested?
Tested locally with dev server by manually resizing the browser window across multiple widths:
Verified behavior both with and without the variant toggle enabled.
Checked that tabs, buttons, and link text remain fully readable with no squishing or wrapping issues.
Tested locally with dev server
Checked against Lint & TypeScript errors
Checklist:
Screenshots :