Skip to content

[URECA-84] Hotfix: 모바일 레이아웃 적용#81

Merged
40food merged 1 commit intodevelopfrom
URECA-84/Hotfix/mobile-layout
Jan 30, 2026
Merged

[URECA-84] Hotfix: 모바일 레이아웃 적용#81
40food merged 1 commit intodevelopfrom
URECA-84/Hotfix/mobile-layout

Conversation

@40food
Copy link
Copy Markdown
Contributor

@40food 40food commented Jan 30, 2026

Key Changes

작업 내역

  • close:

📸 스크린샷

💬 공유사항 to 리뷰어

비고

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • Eslint 및 Prettier 규칙을 준수했습니다.
  • origin/develop 브랜치에서의 최신 커밋을 확인하고 반영했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트)

Summary by CodeRabbit

릴리스 노트

  • 스타일
    • 애플리케이션 레이아웃을 개선하여 콘텐츠 중앙 정렬 및 정렬 기능을 조정했습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 30, 2026

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

Project Deployment Actions Updated (UTC)
unity Ready Ready Preview, Comment Jan 30, 2026 3:15am
unity-client Ready Ready Preview, Comment Jan 30, 2026 3:15am

@github-actions github-actions bot changed the title 모바일 레이아웃 적용 [URECA-84] Hotfix: 모바일 레이아웃 적용 Jan 30, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 30, 2026

📝 Walkthrough

🎯 Walkthrough

src/app/layout.tsx 파일이 수정되어 body 요소에 flexbox 중앙 정렬 클래스(flex, flex-col, items-center, justify-center)가 추가되었습니다. 기존의 Providers, 자식 요소, GlobalComponents를 w-93.75 클래스를 가진 새로운 div 래퍼로 감싸는 변경이 이루어졌습니다. 이는 전체 레이아웃의 너비를 제한하고 중앙 정렬하는 구조적 변경입니다.

🎯 코드 리뷰 포인트

반응형 디자인 & 브라우저 호환성

  • 우려사항: w-93.75 클래스는 고정 너비(약 93.75%)를 설정합니다. 모바일 디바이스에서 작은 화면에 대한 추가 고려가 필요할 수 있습니다.
  • 개선안: Tailwind 공식 문서 기반 반응형 클래스 적용
    • w-full sm:w-[93.75%] 또는 max-w-[93.75%] 같은 구조 검토
    • 모바일 우선 설계 원칙 적용 권장

접근성(A11y)

  • 우려사항: body에 flex, flex-col, justify-center 적용 시 스크린 리더 사용자의 콘텐츠 순서 인식에 영향을 줄 수 있습니다.
  • 개선안:
    • flex 컨테이너는 시각적 순서만 변경하므로, 의미상 순서(order 속성)가 필요한 경우 명시적 관리 필요
    • WCAG 2.1 가이드라인 확인 필수

구조와 유지보수성

  • 현재 상태: 중앙 정렬과 너비 제한을 body 레벨에서 처리 중
  • 개선안:
    • 로이아웃 의도가 명확하도록 별도 클래스명 고려 (예: layout-container, main-wrapper)
    • 재사용 가능한 레이아웃 구조로 Tailwind 커스텀 컴포넌트 활용 검토

📊 예상 코드 리뷰 난이도

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 주요 변경사항인 모바일 레이아웃 적용을 명확히 반영하고 있으며, 구체적이고 간결합니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch URECA-84/Hotfix/mobile-layout

Tip

🧪 Unit Test Generation v2 is now available!

We have significantly improved our unit test generation capabilities.

To enable: Add this to your .coderabbit.yaml configuration:

reviews:
  finishing_touches:
    unit_tests:
      enabled: true

Try it out by using the @coderabbitai generate unit tests command on your code files or under ✨ Finishing Touches on the walkthrough!

Have feedback? Share your thoughts on our Discord thread!


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@40food 40food merged commit eb08ee5 into develop Jan 30, 2026
5 of 6 checks passed
@40food 40food deleted the URECA-84/Hotfix/mobile-layout branch January 30, 2026 03:17
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: 2

🤖 Fix all issues with AI agents
In `@src/app/layout.tsx`:
- Around line 37-40: The body/className currently combines 'flex', 'flex-col',
'items-center', and 'justify-center' which vertically centers all pages and can
hide top content on tall pages; update the root layout by removing
'justify-center' or replacing it with 'justify-start' on the body element (where
'flex', 'flex-col', 'items-center' are applied) so content starts at the top,
and apply 'justify-center' only within individual page components that require
vertical centering.
- Around line 43-48: The div uses a non-existent Tailwind class "w-93.75" so no
width is applied; replace that class on the container wrapping Providers (the
element with children and <GlobalComponents />) with a valid Tailwind utility
such as a fixed 375px mobile width ("w-[375px] max-w-full") or a responsive
max-width ("w-full max-w-[375px]") depending on desired behavior, or use a
responsive variant like "w-full sm:max-w-[375px]" if you want the 375px
constraint only on small screens; verify alignment behavior with
items-center/justify-center remains correct after the change.

Comment on lines +37 to +40
'flex',
'flex-col',
'items-center',
'justify-center',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

justify-center 사용 시 레이아웃 문제 가능성 검토 필요

flex-coljustify-centerbody에 적용하면 콘텐츠가 수직 중앙 정렬됩니다. 이 경우 다음과 같은 문제가 발생할 수 있습니다:

  1. 콘텐츠가 뷰포트를 초과할 때: 상단 콘텐츠가 잘려서 접근할 수 없게 됩니다 (스크롤해도 상단으로 도달 불가)
  2. 페이지별 높이가 다를 때: 짧은 페이지는 중앙 정렬되고, 긴 페이지는 상단이 잘리는 일관성 없는 UX가 발생합니다

루트 레이아웃에서는 일반적으로 콘텐츠를 상단에서 시작하도록 하는 것이 안전합니다.

🛠️ 권장 수정안
          'flex',
          'flex-col',
          'items-center',
-          'justify-center',
+          'justify-start',

또는 justify-center를 완전히 제거하고 개별 페이지에서 필요 시 중앙 정렬을 적용하는 것을 권장합니다.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'flex',
'flex-col',
'items-center',
'justify-center',
'flex',
'flex-col',
'items-center',
'justify-start',
🤖 Prompt for AI Agents
In `@src/app/layout.tsx` around lines 37 - 40, The body/className currently
combines 'flex', 'flex-col', 'items-center', and 'justify-center' which
vertically centers all pages and can hide top content on tall pages; update the
root layout by removing 'justify-center' or replacing it with 'justify-start' on
the body element (where 'flex', 'flex-col', 'items-center' are applied) so
content starts at the top, and apply 'justify-center' only within individual
page components that require vertical centering.

Comment on lines +43 to +48
<div className="w-93.75">
<Providers>
{children}
<GlobalComponents />
</Providers>
</div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# Find Tailwind configuration files
fd -e js -e ts -e mjs -e json "tailwind" --type f

Repository: U-nify/Unity-client

Length of output: 81


🏁 Script executed:

# Search for any references to 93.75 or w-93.75 in the codebase
rg "93\.75|w-93\.75" -i

Repository: U-nify/Unity-client

Length of output: 115


🏁 Script executed:

# Check the actual layout.tsx file around the specified lines
head -60 src/app/layout.tsx | tail -25

Repository: U-nify/Unity-client

Length of output: 596


🏁 Script executed:

# Search for custom CSS or Tailwind theme configuration
fd -e css "globals|style|tailwind" --type f | head -20

Repository: U-nify/Unity-client

Length of output: 82


🏁 Script executed:

cat -n tailwind.config.ts

Repository: U-nify/Unity-client

Length of output: 1301


🏁 Script executed:

cat -n src/app/globals.css

Repository: U-nify/Unity-client

Length of output: 2424


w-93.75 클래스가 정의되지 않았습니다

Tailwind CSS 설정(tailwind.config.ts)과 globals.css를 확인한 결과, w-93.75는 표준 Tailwind v4 유틸리티도 아니고 커스텀으로 정의되지 않은 클래스입니다. 이 클래스는 전혀 스타일을 적용하지 않으므로 의도한 너비 제약이 작동하지 않습니다.

375px 너비의 모바일 중심 컨테이너를 의도했다면:

<div className="w-[375px] max-w-full">

또는 더 나은 반응형 접근:

<div className="w-full max-w-[375px]">

추가로 검토할 사항:

  1. 레이아웃 의도 재검토: 현재 items-center justify-center로 중앙 정렬된 구조에서 고정 너비가 모든 화면에 적용되는 게 의도인지 확인 필요. 태블릿/데스크톱에서도 375px 너비가 원하는 결과인지 검토해 주세요.

  2. 반응형 고려: 화면 크기별로 다른 너비가 필요하다면:

    <div className="w-full sm:max-w-[375px]">
  3. theme 변수 활용: globals.css--spacing-mobile: 480px을 참고하면, 팀의 설계 시스템에 맞는 너비 값이 이미 정의되어 있을 수 있습니다. 이를 활용하여 일관된 spacing을 유지해 주세요.

🤖 Prompt for AI Agents
In `@src/app/layout.tsx` around lines 43 - 48, The div uses a non-existent
Tailwind class "w-93.75" so no width is applied; replace that class on the
container wrapping Providers (the element with children and <GlobalComponents
/>) with a valid Tailwind utility such as a fixed 375px mobile width ("w-[375px]
max-w-full") or a responsive max-width ("w-full max-w-[375px]") depending on
desired behavior, or use a responsive variant like "w-full sm:max-w-[375px]" if
you want the 375px constraint only on small screens; verify alignment behavior
with items-center/justify-center remains correct after the change.

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.

1 participant