Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ export default function RootLayout({ children }: { children: ReactNode }) {
gowunDodum.variable,
'bg-[#FBF8FB]',
'min-h-dvh',
'flex',
'flex-col',
'items-center',
'justify-center',
Comment on lines +37 to +40
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.

].join(' ')}
>
<Providers>
{children}
<GlobalComponents />
</Providers>
<div className="w-93.75">
<Providers>
{children}
<GlobalComponents />
</Providers>
</div>
Comment on lines +43 to +48
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.

</body>
</html>
);
Expand Down