Repository navigation
[DONE] 폰에서 Pattern Lab 패널이 화면 폭 그대로 보인다 - #99
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
At 390px the three default columns left each panel about 110px. A dock 800px wide or less now builds Preview on top and every other panel as a tab below it, and saves its layout under its own key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
patternflow-bot
marked this pull request as ready for review
October 16, 2026 16:36
This was referenced Oct 16, 2026
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.
dev / https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
폰 폭(800px 이하)에서 Pattern Lab 을 열면 Preview 가 위에 화면 폭 그대로 서고, 나머지 패널은 그 아래 한 무리의 탭이 돼요. 지금은 데스크톱 배치 그대로 세 칸으로 눌려 한 칸이 96~158px 이라 프레임 고르기가 「128 × 64 (Patter」로 잘리고 Knobs 의 입력이 칸 밖으로 나가요. 데스크톱 배치는 그대로예요.
좋아지는 것: 폰에서 Pattern Lab 패널이 화면 폭 그대로 보인다 — 글이 잘리지 않고 노브 입력이 칸 안에 든다
체크리스트
registry.test.ts0ebf108에서 Drift checks, Web CI 둘 다 success한 일
panels/registry.tsx의buildDefaultLayout이narrow를 받아요. 좁으면 Preview 를 뿌리에 두고 Code 를 그 아래(below)에, 나머지 일곱 패널을 Code 무리 안(within)에 메뉴 차례로 넣어요. Code 가 첫 탭이에요. 메뉴 차례대로 두면 Layers 가 첫 탭인데, 374px 탭 줄이 앞에 선 Code 를 보이려고 Layers 를 왼쪽 밖으로 밀어냈어요. Preview 는 독 높이의 42% 예요. 2:1 프레임이 화면 폭으로 들어가고 그 위 줄이 남아요.폭은
(max-width: 800px)로 재요. 헤더가 두 줄로 접히는 폭(LabPanels.module.css)과 같아요. 독을 지을 때 한 번 묻고, Reset layout 을 누르면 그때 폭으로 다시 물어요.좁게 지은 독은 배치를 새 키
patternflow_lab_layout_narrow_v1에 저장해요(lib/lab/persist.ts). 태블릿은 세워서도 눕혀서도 열리니 폭마다 제 배치를 따로 지켜요. 폰이 지금까지_layout_v1에 써 둔 세 칸 배치는 좁은 폭에서 더 읽지 않아요. 그래서 이미 Lab 을 폰에서 연 사람도 다음에 열면 새 배치를 봐요.새
panels/registry.test.ts는 다섯 개예요. 좁은 배치의 무리와 탭 차례, Code 가 앞이고 Preview 가 제 높이를 받는 것, 넓은 배치가 등록부대로 놓이고 칸이 줄보다 먼저 갈리는 것,isNarrowDock의 390·800·801·1440px, matchMedia 가 없는 브라우저.증거
web/에서 돌린 각 출력의 끝줄이에요.check:ci안의check:panels는Test Files 39 passed (39),Tests 519 passed (519)이에요.빌드한 사이트를 Chromium 으로 열어 독 무리를 읽었어요(x,y 폭×높이 [탭]).
저장은 한 브라우저에서 차례로 봤어요. 1440 에서 Knobs 를 Code 무리로 끌어 옮기면
patternflow_lab_layout_v1만 생겨요. 390 으로 다시 열면 좁은 배치가 나오고, 1440 으로 다시 열면 Knobs 가 Code 무리에 든 배치가 그대로 돌아와요. 390 에서 Reset layout 을 누르면 좁은 배치예요. 따로 390 에서 Gallery 를 닫으면patternflow_lab_layout_narrow_v1이 생기고, 다시 열어도 Gallery 없는 좁은 배치가 돌아와요. 그 브라우저로 1440 을 열면 넓은 기본 배치예요.Code 편집기는 사진에서 「Loading...」에 머물러요. Monaco 가 CDN 에서 오는데 이 컨테이너의 브라우저가 거기 닿지 못해요. 고치기 전 사진도 같아요.
실행법
폰이나 브라우저 개발 도구의 390px 폭으로
http://localhost:3100/pattern-lab을 열어요. 이미 이 브라우저에서 좁은 배치를 바꿨으면 Panels ▾ 의 Reset layout 이에요.가정
_layout_v1에 써 둔 세 칸 배치는 지우지 않았어요. 그 브라우저를 801px 이상으로 열면 그 배치가 되살아나요.lab-dock.css가 있었는데 고치지 않았어요. dockview 7 이 넘치는 탭을 「⌄ 4」 목록으로 이미 모아 줘서요.Changelog
Web
바퀴
바퀴 4 · 후보 4 「폰에서 Pattern Lab 패널이 한 칸씩 넓게 보인다」
다음 바퀴
passive: false리스너 하나씩이고, 같은 Lab 의useTimelineZoom.ts가 본이에요.aria-pressed를 데스크톱 단추로 옮기면 돼요.BuildCards.tsx의Links꼴을 가져오면 돼요.https://claude.ai/code/session_0137CvqHMPfvYM6xXL1RN28P
Generated by Claude Code