Repository navigation
[DONE] 폰에서 저널 글이 화면 끝 48px 대신 24px 에서 시작해 한 줄이 넓어진다 - #316
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
The shell's gutter and the panel's padding added up, leaving 17.6 characters of 15px text a line at 360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
patternflow-bot
marked this pull request as ready for review
October 28, 2026 09:19
This was referenced Oct 28, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 29, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 29, 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.
lsh / https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
폰에서 저널 글이 화면 끝에서 48px 안쪽에서 시작했어요. 크림색 바깥 여백 24px 와 흰 판의 안 여백 24px 가 겹쳐서예요. 머지하면 흰 판이 폰 화면 끝까지 닿고 글은 24px 안쪽에서 시작해서, 360px 폰의 한 줄이 15px 글자 17.6자 폭에서 20.8자 폭으로 넓어져요. 721px 위 화면은 그대로예요.
좋아지는 것: 폰에서 저널 글 한 줄이 넓어진다 — 좁은 화면에서도 덜 꺾여 읽힌다
체크리스트
0915176가 이미 들어 있음) · 검사 초록(heada7794f0: Drift checks · Web CI success) · 겹침 기다리기 「안 겹친다」한 일
web/src/app/globals.css폰 덩어리(@media (max-width: 720px))의.journal-panel, .journal-article에margin-left: -24px와margin-right: -24px를 두고width: 100%를auto로 바꿨어요. 흰 판이 크림색 바깥 여백 위로 늘어 화면 끝까지 가고, 판 안 여백 24px 는 그대로라 글이 24px 안쪽에서 시작해요. 저널 머리(Patternflow · Journal)와 두 바닥 줄은 바깥 여백에 그대로 서 있어서, 폰에서 머리와 글과 바닥 줄이 같은 24px 줄에서 시작해요.web/src/components/journal/journalCss.test.ts에 「journal text on a phone」 시험 다섯을 더했어요. 폰 규칙대로면 글이 화면 끝에서 16~24px 에서 시작하는지, 판이 화면 밖으로 나가지 않는지(margin 이 음수면 width 가 auto), 두 바닥 줄이 글과 같은 자리에서 시작하는지 봐요. 바닥 줄 시험 하나는 이름만 「keeps both in the shell's gutter on a phone」 으로 바꿨어요. 보는 값[0, 0]은 그대로예요.증거
dev 빌드와 이 브랜치 빌드를 Chromium 으로 열어 getComputedStyle 과 글자마다의 Range 로 쟀어요. 글은 「나와 패턴플로우」(
/journal/me-and-patternflow, 제목 11 · 문단 49)예요.고친 값, 전 → 후(px):
/journal글 제목 왼쪽 끝 · 폭꽉 찬 줄의 글자 수는 띄어쓰기와 숫자까지 센 값이라 폭 ÷ 글자 크기보다 커요. 상자의 한글 대체 글꼴은 WenQuanYi Zen Hei 라 폰 글꼴과 다르지만 한글 한 자가 1em 인 것은 같아서, 잴 기준은 폭 ÷ 글자 크기로 봤어요.
/en판(같은 규칙) 390 에선 본문 왼쪽 끝이 48 → 24, 폭 ÷ 글자 크기가 19.6 → 22.8, 꽉 찬 줄 글자 수 가운데값이 45 → 52(가장 긴 줄 53 → 61)예요. 영문 35~60자 안이에요. 430 에선 가운데값이 51 → 59 예요.창작자가 짚은 자간과 행간은 고치지 않았어요. 본문 자간 −0.005em(−0.075px), 행간 1.68(25.2px)이 360 · 390 · 430 모두 같고, 기준(자간 −0.03
0em, 행간 1.61.8, 영문 1.5~1.7) 안이라서예요.721px 위는 그대로예요. 이 브랜치 빌드의 한 쪽을 연 채 두 빌드의 CSS 를 같은 origin 의
<style>로 갈아 끼우고,main안 상자마다 위치와 크기를 견줬어요. 두 빌드 CSS 의 차이는 이 규칙 하나예요(}로 끊어 diff 하면 한 줄).1440 사진 셋(글 머리, 글 본문, 목록)도 전후가 바이트까지 같아요. dev CSS 를 갈아 끼워 찍은 390 사진이 dev 빌드에서 바로 찍은 사진과 바이트까지 같아서, 「글 끝」과 「목록 위」의 전 사진은 그렇게 찍었어요.
새 시험을 dev 의
globals.css에 돌리면고친 뒤엔
Tests 19 passed (19)예요.다섯 검사(
web/에서):사진은 같은 글, 같은 자리예요. 글 본문은 두 번째 제목 「2. 글의 동기」를 위에 둔 화면이에요.
실행법
가정
.journal-shell)을 0 으로 하면 그 여백에 바로 선 저널 머리와 두 바닥 줄이 화면 끝에 붙어서 규칙 셋을 더 고쳐야 해요. 판 안 여백을 0 으로 하면 글이 흰 판 끝에 붙어요. 그래서 흰 판만 바깥 여백 위로 늘였어요. 규칙 하나예요. 폰에서 흰 판 양옆의 크림색 띠 24px 는 사라지고, 위아래 크림색은 그대로예요.sizes는 이미 폰에서calc(100vw - 48px)라고 적어요(ArticleLayout.tsx,JournalIndex.tsx). 고친 뒤 판 안 폭과 같아요. 코드는 그대로예요.incoming/은 그대로예요.Changelog
Web
경험
언제: 저널 바퀴에서 빌드를 다시 하려고 띄워 둔
next start를 끌 때교훈:
pkill -f "next start -p 3100"은 그 글이 든 제 셸까지 죽이니,ps로next-server의 pid 를 찾아kill하고 빌드는 따로 띄워요근거: #316 에서
pkill -f와npm run build를 한 명령으로 띄우니 빌드가 exit 144 로 로그도 없이 끝났고, 옛 서버는 살아 있어 새 빌드 대신 dev CSS 를 내줬어요바퀴
바퀴 143 · 후보: 저널 타이포 — 고친 곳: web/src/app/globals.css ·
@media (max-width: 720px)의.journal-panel, .journal-article· margin-left · margin-right(−24px), width(auto) · 까닭: 폰 360 · 390 · 430 에서 본문이 화면 끝에서 48px(기준 1624px)에서 시작해 15px 글이 360 에서 17.6자 폭(기준 1828)이었다다음 바퀴
/journal의 74곳(날짜 37, 읽는 시간 37)이 360 · 390 · 430 모두 그래요.globals.css폰 덩어리의.journal-list-metafont-size예요..journal-reading이word-break: normal이라, 고친 뒤 「나와 패턴플로우」 본문 줄바꿈 가운데 낱말 안에서 끊긴 것이 360 에서 465 가운데 438, 390 에서 423 가운데 388, 430 에서 374 가운데 348 이에요(92~94%).keep-all이에요.18px). 이번 바퀴 뒤엔 16px 로 올려도 폭 ÷ 글자 크기가 360 19.5 · 390 21.4 · 430 23.9 로 1828 안이에요. 그다음은 글 제목 행간 1.02(기준 1.2~1.4)와 글 안 목록에 점과 들여쓰기가 없는 것(「글을 적는 이유」의 ul 3줄,list-style: none·padding-left: 0)이에요.https://claude.ai/code/session_01Bc4JkrL3UrGApTf2da2Y3K
Generated by Claude Code