diff --git a/src/sw/sw-header.stories.tsx b/src/sw/sw-header.stories.tsx index b40d69b..cb4169b 100644 --- a/src/sw/sw-header.stories.tsx +++ b/src/sw/sw-header.stories.tsx @@ -495,11 +495,15 @@ const documentCallbacks = { onDocumentOpen: () => console.info("[SWHeader] documentOpen"), } -/** Frame with room below the header so the overlay dropdown is not clipped by the story scroller. */ -function MenuFrame({ width, children, fixedDimension = false }: { width: number; children: ReactNode; fixedDimension?: boolean }) { +/** + * Frame with room below the header so the overlay dropdown is not clipped by the story scroller. + * `fluid` (2026-10-22): `width` is a maximum for the scroller that paints the black grid, and the frame fills it, so the + * grid and the header share one width and shrink together on a narrower screen (no grid left beside the header). + */ +function MenuFrame({ width, children, fixedDimension = false, fluid = false }: { width: number; children: ReactNode; fixedDimension?: boolean; fluid?: boolean }) { return ( -
-
{children}
+
+
{children}
) } @@ -787,7 +791,7 @@ export const ResponsiveMore: Story = { {MORE_WIDTHS.map(width => ( - + ))} diff --git a/src/sw/sw-viewer.stories.tsx b/src/sw/sw-viewer.stories.tsx index a493055..2a5a3b7 100644 --- a/src/sw/sw-viewer.stories.tsx +++ b/src/sw/sw-viewer.stories.tsx @@ -338,7 +338,8 @@ export const Responsive: Story = {
{[1920, 1440, 1280, 950, 860, 760, 520].map(width => ( -
+ {/* The row width is a maximum (2026-10-22): on a narrower screen the header shrinks with it instead of scrolling. */} +
))}