Skip to content

QA: 수정된 레이아웃 반영#190

Merged
seueooo merged 2 commits into
developfrom
feat/fix-global-layout/#189
Aug 21, 2025
Merged

QA: 수정된 레이아웃 반영#190
seueooo merged 2 commits into
developfrom
feat/fix-global-layout/#189

Conversation

@seueooo
Copy link
Copy Markdown
Contributor

@seueooo seueooo commented Aug 21, 2025

📌 Summary

📚 Tasks

  • 전체 최대넓이 1200px 고정

👀 To Reviewer

main, sub는 상단 헤더 기준으로 나눠놓은거라 그대로 유지해야될 것 같습니다~!

Summary by CodeRabbit

  • 스타일
    • 메인 및 상세 레이아웃의 최대 너비를 확대(약 1200px)하고 중앙 정렬로 가독성 개선
    • 캡슐 상세 페이지 컨테이너 중앙 배치 및 좌우 패딩 추가로 여백 일관성 향상
    • 반응형 푸터: 중간 화면 이상에서 가로 중앙 정렬 및 가용 너비 확장으로 안정적 배치
    • 상세 네비게이션 바 최대 너비 확대로 넓은 화면 활용성 개선
  • 기타
    • 일부 파일 포맷 정리(동작 변화 없음)

@seueooo seueooo self-assigned this Aug 21, 2025
@seueooo seueooo requested a review from seung365 as a code owner August 21, 2025 12:34
@seueooo seueooo linked an issue Aug 21, 2025 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
time-capsule Ready Ready Preview Comment Aug 21, 2025 0:35am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 21, 2025

Walkthrough

전역 스타일에서 mainLayout를 제거하고 maxWidth를 1200px로 상향하면서 관련 컴포넌트들이 maxWidth를 참조하도록 정리했습니다. 서브 페이지 및 네비게이션/푸터 컨테이너의 최대 너비와 정렬을 조정했고, 일부 파일은 포매팅만 변경되었습니다.

Changes

Cohort / File(s) Change Summary
전역 레이아웃/스타일 정리
shared/styles/base/global.css.ts, app/(main)/layout.tsx
maxWidth를 1200px로 상향하고 width: 100% 유지. mainLayout export 제거. app 메인 레이아웃이 mainLayout 대신 maxWidth 클래스를 사용하도록 수정.
캡슐 상세 페이지 스타일/마크업
app/(sub)/capsule-detail/[invite-code]/[id]/page.css.ts, app/(sub)/capsule-detail/[invite-code]/[id]/page.tsx
컨테이너를 margin: 0 auto로 중앙 정렬, maxWidth: 90rem, 수평 패딩 추가. TSX는 포매팅 변경만 있으며 로직 동일.
반응형 푸터 스타일
app/(sub)/capsule-detail/_components/responsive-footer/responsive-footer.css.ts
md 브레이크포인트에서 좌우 중앙 정렬(left: 50% + translateX)로 변경, 너비를 calc(90rem - 3.4rem)로 확장, 기존 margin 제거.
상세 네비게이션 바 스타일
shared/ui/navbar/navbar-detail/navbar-detail.css.ts
컨테이너 maxWidth를 80rem → 120rem으로 확장.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/fix-global-layout/#189

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link
Copy Markdown

This pull request (commit eb48ea1) has been deployed to Vercel ▲ - View GitHub Actions Workflow Logs

Name Link
🌐 Unique https://time-capsule-ebv6fgm4z-hs-projects-b4a69d5f.vercel.app
🔍 Inspect https://vercel.com/hs-projects-b4a69d5f/time-capsule/9rQBDXHUUvs9VvzijKW6p346wqN6

@github-actions
Copy link
Copy Markdown

🚀 Storybook 배포

📖 Storybook: https://683d91ab23651aa0b399e435-vatuydphzm.chromatic.com/
🔗 Chromatic Build: https://www.chromatic.com/build?appId=683d91ab23651aa0b399e435&number=215
✅ Status: success

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
app/(sub)/capsule-detail/[invite-code]/[id]/page.css.ts (1)

8-10: 컨테이너 센터링 정착 OK. 가터/폭 일관성을 위해 width 추가와 값 통일 제안

  • 현재 maxWidth(90rem) + margin: 0 auto로 센터링은 되지만, 레이아웃 전역에서 사용하는 패턴과 일치시키려면 width: "100%"를 추가하는 편이 안전합니다(다른 컨테이너들과의 일관성 및 예기치 않은 shrink-to-fit 방지).
  • 같은 PR의 responsive-footer(md)에서 width를 calc(90rem - 3.4rem)로 계산하고 있는데, 본 컨테이너는 padding이 좌우 1.6rem(총 3.2rem)입니다. 3.4rem과 3.2rem이 섞이면 미세한 어긋남이 생길 수 있어 값 통일을 권장드립니다.

아래처럼 width를 추가하고, 이후 footer 쪽에서도 3.2rem로 통일하는 방향을 검토해주세요.

 export const container = style({
   display: "flex",
   flexDirection: "column",
   gap: "1.6rem",
   margin: "0 auto",
   maxWidth: "90rem",
+  width: "100%",
   padding: "0 1.6rem",
 });
app/(main)/layout.tsx (1)

1-1: maxWidth만으로는 좌우 중앙 정렬/가터가 보장되지 않습니다 — 공용 컨테이너 유틸로 보완 제안

  • 현재 maxWidth는 { maxWidth: "1200px", width: "100%" }만 제공하므로 중앙 정렬(margin: 0 auto)과 기본 가터(padding 좌우 1.6rem)가 적용되지 않을 수 있습니다. 메인 라우팅 전반의 정렬/여백 일관성을 위해 공용 "centered" 또는 "container" 유틸 클래스를 만들어 함께 적용하는 것을 권장합니다.
  • 디자인 가이드가 “메인”과 “서브”를 헤더 기준으로 구분한다고 하셨으니, 메인 레이아웃에서만 해당 유틸을 결합하는 식으로 운용하면 됩니다.

예시(diff: 본 파일), 그리고 global.css.ts에 보강할 유틸 예시(참고 코드):

- import { maxWidth } from "@/shared/styles/base/global.css";
+ import { maxWidth, centered } from "@/shared/styles/base/global.css";

 ...
-   <div className={maxWidth}>
+   <div className={`${maxWidth} ${centered}`}>
      <NavbarMain />
      {children}
    </div>

global.css.ts(참고 코드):

export const centered = style({
  margin: "0 auto",
  padding: "0 1.6rem",
});

메인 페이지 몇 곳에서 실제로 중앙 정렬/가터가 적용되는지 시각 확인 부탁드립니다(넓은 해상도와 모바일 모두).

Also applies to: 7-7

shared/ui/navbar/navbar-detail/navbar-detail.css.ts (1)

15-15: 서브 상세 네비 폭(120rem)과 본문 컨테이너 폭(90rem) 불일치 — 의도 확인 필요

  • 현재 서브 페이지 본문은 90rem(maxWidth) 기준이고, NavbarDetail은 120rem로 더 넓습니다. 의도된 디자인(헤더는 더 넓고 본문은 좁게)이라면 OK입니다. 아니라면 서브 영역에서는 네비도 90rem에 맞춰 정렬해야 좌우 경계선이 일치합니다.
  • 단위도 global은 px(1200px), 여기서는 rem(120rem)으로 혼재되어 있습니다. 한쪽으로 통일(rem 권장)을 고려해주세요.

선택지:

  • 의도된 디자인: 그대로 유지.
  • 본문과 정렬 일치: maxWidth를 "90rem"로 조정.
  • 단위 통일: global.css.ts의 1200px → "120rem"로 변경 또는 본 파일을 px로 맞춤(전자는 반응형/접근성 측면에서 추천).
app/(sub)/capsule-detail/_components/responsive-footer/responsive-footer.css.ts (1)

14-16: md 구간에서 고정 폭 계산식 개선 제안(오버플로우 및 가터 불일치 가능성)

  • width: calc(90rem - 3.4rem)는 브레이크포인트(screen.md)가 90rem 미만일 경우(프로젝트 토큰 정의에 따라) 뷰포트보다 넓어질 수 있어 수평 스크롤/잘림이 생길 수 있습니다.
  • 상단 page 컨테이너의 가터는 좌우 1.6rem(총 3.2rem)인데, 여기서는 3.4rem로 달라 미세한 어긋남이 발생할 수 있습니다.

보다 견고한 폭 계산으로 아래 중 하나를 권장합니다(가터 3.2rem 기준):

   ...screen.md({
     position: "fixed",
     bottom: "7rem",
-    left: "50%",
-    transform: "translateX(-50%)",
-    width: "calc(90rem - 3.4rem)",
+    left: "50%",
+    transform: "translateX(-50%)",
+    width: "100%",
+    maxWidth: "calc(90rem - 3.2rem)",
     flexDirection: "row",

또는 CSS 함수 사용:

width: "min(calc(100vw - 3.2rem), 90rem)"

md 기준이 90rem 이상인지도 함께 확인 부탁드립니다. 아니라면 위 개선이 특히 유효합니다.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d42237f and eb48ea1.

📒 Files selected for processing (6)
  • app/(main)/layout.tsx (1 hunks)
  • app/(sub)/capsule-detail/[invite-code]/[id]/page.css.ts (1 hunks)
  • app/(sub)/capsule-detail/[invite-code]/[id]/page.tsx (1 hunks)
  • app/(sub)/capsule-detail/_components/responsive-footer/responsive-footer.css.ts (1 hunks)
  • shared/styles/base/global.css.ts (0 hunks)
  • shared/ui/navbar/navbar-detail/navbar-detail.css.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • shared/styles/base/global.css.ts
🧰 Additional context used
🧬 Code graph analysis (2)
app/(main)/layout.tsx (1)
shared/styles/base/global.css.ts (1)
  • maxWidth (50-53)
app/(sub)/capsule-detail/[invite-code]/[id]/page.tsx (1)
shared/utils/date.ts (1)
  • formatDateTime (58-68)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: test
  • GitHub Check: storybook-deploy
  • GitHub Check: deploy
🔇 Additional comments (1)
app/(sub)/capsule-detail/[invite-code]/[id]/page.tsx (1)

124-143: 서브 섹션을 컨테이너로 감싸며 폭/가터 일관화한 점 좋습니다

  • RevealMotion/InfoTitle/CapsuleImage/섹션 구성이 기존 로직을 유지하면서 레이아웃만 정리된 것으로 보입니다. 변경 취지에 부합하고 부작용 없어 보입니다.

@seueooo seueooo merged commit 5afe0fc into develop Aug 21, 2025
11 checks passed
@seueooo seueooo deleted the feat/fix-global-layout/#189 branch August 21, 2025 12:40
@seung365
Copy link
Copy Markdown
Member

좋습니다~👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 레이아웃 수정 반영

2 participants