feat(layout): 페이지 폭 72rem 통일 및 본문·다이어그램 정렬 개선 - #179
Merged
Merged
Conversation
PageContainer의 default/article/wide variant를 모두 72rem으로 맞춰 페이지마다 56rem/64rem으로 갈리던 본문 폭을 통일한다. 글 상세가 넓어짐에 따라 우측 TOC가 잘리지 않도록 TOC 표시 브레이크포인트를 1536px에서 1856px로 올린다.
Mermaid가 붙이는 자연 폭 상한을 max-width:100%로 덮어써 좁은(세로형) 다이어그램이 컨테이너 폭까지 늘어나던 문제를 수정한다. viewBox 자연 폭을 명시 width로 고정하고, 확대 모달은 폭을 채우도록 override한다.
본문 폭을 72rem으로 넓힌 것에 맞춰 상대적으로 좁아진 우측 상세 레일을 20rem에서 24rem으로 키워 좌우 비율을 조정한다.
화면 전체 정중앙에 맞추던 translateX 보정을 제거해 사이드바 오른쪽 영역 안에서 좌우 여백이 대칭이 되도록 한다. 다만 우측 TOC가 뜨는 글 상세(>=1856px)에서는 본문을 왼쪽으로 당겨 TOC 공간을 확보해야 하므로, 정렬 보정을 해당 구간의 글 상세 본문에만 적용한다. 사용하지 않게 된 CSS 변수도 함께 정리한다.
글 상세에서 본문을 화면 정중앙에 억지로 맞추던 방식 대신, 본문과 우측 TOC를 하나의 묶음으로 보고 그 중심이 콘텐츠 영역(인셋) 중앙에 오도록 한다. 본문 폭은 72rem 그대로 유지하고, 본문을 우측 TOC(gap + 15rem)의 절반만큼만 왼쪽으로 당겨 좌우 여백이 대칭이 되게 한다. 사용하지 않게 된 CSS 변수도 정리한다.
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.
목적
페이지마다 56rem/64rem으로 갈리던 본문 폭을 통일하고, 사이드바 때문에 왼쪽으로 치우쳐 보이던 정렬과 일부 Mermaid 다이어그램이 과도하게 확대되는 문제를 개선한다.
내용(의도 포함)
default/article/widevariant 모두). 본문이 넓어진 만큼 글 상세 우측 TOC 표시 브레이크포인트도 함께 조정.20rem→24rem으로 확대해 넓어진 본문과 좌우 비율을 맞춤.성공기준
npm run build성공: tsc + client + SSR 빌드 + 하이드레이션 SSG 114페이지 프리렌더 정상.