docs(storybook): fit SW Responsive More rows to the screen
Deploy Storybook / deploy (push) Successful in 53s
Deploy Storybook / deploy (push) Successful in 53s
SW Header Responsive More: MenuFrame gains a fluid option. The row width caps the scroller that paints the black grid and the frame fills it, so grid and header share one width and shrink together (no grid left beside the header). SW Viewer Responsive More: each row width is a maximum instead of a fixed width. The 1920 row is 1536px at a 1920px screen (80vw inner); integrated-visual baselines differ by this intended layout change and are not updated.
This commit is contained in:
1 parent
f3557605a4
commit
ccafc6e332
2 files changed
+11
-6
No files matched your search
@@ -338,7 +338,8 @@ export const Responsive: Story = {
|
||||
<div className="sw-story-stack">
|
||||
{[1920, 1440, 1280, 950, 860, 760, 520].map(width => (
|
||||
<StorySection key={width} title={`${width}px`}>
|
||||
<div className="sw-story-scroller sw-viewer-story-menu-row"><div style={{ width }} data-width={width}><SWViewerHeader documentTitle={demo.documentName} {...demo.fileProps} groups={demo.groups} trailing={demo.trailing} onCommand={demo.onCommand} /></div></div>
|
||||
{/* The row width is a maximum (2026-10-22): on a narrower screen the header shrinks with it instead of scrolling. */}
|
||||
<div className="sw-story-scroller sw-viewer-story-menu-row"><div style={{ width: "100%", maxWidth: width }} data-width={width}><SWViewerHeader documentTitle={demo.documentName} {...demo.fileProps} groups={demo.groups} trailing={demo.trailing} onCommand={demo.onCommand} /></div></div>
|
||||
</StorySection>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user