From 71003c58c121035424003bce83ebc89241a018f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=88=98=ED=98=84?= Date: Fri, 23 Oct 2026 10:13:09 +0900 Subject: [PATCH] fix(storybook): hide the SW Viewer Responsive 1920 row on narrow pages --- src/sw/sw-stories.css | 4 +++- src/sw/sw-viewer.stories.tsx | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sw/sw-stories.css b/src/sw/sw-stories.css index e7e06b8..ddb63e3 100644 --- a/src/sw/sw-stories.css +++ b/src/sw/sw-stories.css @@ -6,7 +6,9 @@ .sw-story-responsive { container-type: inline-size; } .sb-page:has(.sw-story-responsive) { container: sw-story-page / inline-size; } .sw-story-responsive-wide { width: 1920px; max-width: none; margin-inline: calc((100% - 1920px) / 2); } -@container sw-story-page (max-width: 1999.98px) { .sw-story-responsive-wide { display: none; } } +/* sw-story-responsive-hidden (2026-10-23, SW Viewer Responsive): the same hiding for a 1920 row that stays inside the + Story column (no reach-out). */ +@container sw-story-page (max-width: 1999.98px) { :is(.sw-story-responsive-wide, .sw-story-responsive-hidden) { display: none; } } .sw-story-frame { background: #060606; } /* Shared drawing-area canvas of the SW Stories (2026-10-19): the SW/Viewer black grid — 40px cells, 1px lines of HM green #266651 at 18%, on #0A0A0B. Used behind the SW Header work area and dropdown room and the viewer frames. */ diff --git a/src/sw/sw-viewer.stories.tsx b/src/sw/sw-viewer.stories.tsx index c1e158a..531b6db 100644 --- a/src/sw/sw-viewer.stories.tsx +++ b/src/sw/sw-viewer.stories.tsx @@ -331,8 +331,9 @@ export const Responsive: Story = {
{[1920, 1440, 1280, 950, 860, 760, 520].map(width => ( // 2026-10-22 (user request): the 1920 row no longer reaches out of the content area (no sw-story-responsive-wide); - // like the other rows it is a maximum inside the Story column. -
+ // like the other rows it is a maximum inside the Story column. 2026-10-23: it is hidden on the same narrow pages + // as the SW Header / Footer 1920 rows (sw-story-responsive-hidden, sw-stories.css), e.g. a 1920px screen. +
{/* The row width is a maximum (2026-10-22): on a narrower screen the header shrinks with it instead of scrolling. */}