Repository navigation
chore(fuselage): skip breakpoints without minimum width in Storybook viewports - #42996
MYMISERABLEMIND17 wants to merge 1 commit into
Conversation
…viewports The xs breakpoint token defines minViewportWidth as null, causing Storybook to construct an invalid width: 'nullpx' viewport. Skipping breakpoints without a minimum width prevents invalid viewport styles and keeps Storybook viewport presets clean. Closes RocketChat#42791
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
WalkthroughThe Storybook viewport configuration now excludes breakpoints with a null ChangesStorybook viewport configuration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|

Closes #42791
Proposed changes
The
xsbreakpoint token in@rocket.chat/fuselagedefinesminViewportWidthasnull, causing Storybook's viewport addon in.storybook/preview.tsxto construct an invalidnullpxwidth.Filtering out breakpoint entries where
minViewportWidth == nullensures only valid, functional viewport presets (smand above) are exposed in the Storybook toolbar, preventing the preview iframe from collapsing or rendering invalid styles.Verification
packages/fuselage/.storybook/preview.tsx.breakpointTokenswithoutminViewportWidthare excluded whilesm,md,lg,xlretain their respective pixel bounds.Summary by CodeRabbit