Skip to content

QueryBox Layout 수정#360

Open
Bangdayeon wants to merge 1 commit intomainfrom
fix/#358-chatpage-textarea-layout
Open

QueryBox Layout 수정#360
Bangdayeon wants to merge 1 commit intomainfrom
fix/#358-chatpage-textarea-layout

Conversation

@Bangdayeon
Copy link
Member

관련 이슈

PR 설명

  • HomePage 로딩 중 화면, ChatPage에서의 QueryBox 레이아웃이 깨지는 문제 수정

변경 내용

변경 전

2026-02-11.5.17.57.mov

변경 후

2026-02-11.5.17.19.mov

@Bangdayeon Bangdayeon self-assigned this Feb 11, 2026
@Bangdayeon Bangdayeon linked an issue Feb 11, 2026 that may be closed by this pull request
@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Walkthrough

ChatQueryBox 컴포넌트의 레이아웃과 위치 지정 방식을 개선합니다. ChatPage에서는 고정 위치 오버레이 구조를 정상 문서 흐름으로 변경하고, HomePage에서는 고정 위치에서 절대 위치 기반 구조로 전환합니다. 두 파일 모두 ChatQueryBox 래퍼에 반응형 최대 너비(816px)를 적용하여 일관된 크기 제약을 구현합니다. 채팅 로직이나 데이터 흐름은 변경되지 않으며 스타일과 위치 지정만 조정됩니다.

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목이 변경사항의 주요 내용을 명확하게 설명합니다. QueryBox의 레이아웃 수정이라는 핵심 변경사항을 잘 반영하고 있습니다.
Description check ✅ Passed PR 설명이 필수 템플릿 구조를 따르고 있으며, 관련 이슈, PR 설명, 변경 내용을 모두 포함하고 있습니다.
Linked Issues check ✅ Passed 코드 변경사항이 #358의 요구사항을 충족합니다. ChatPage와 HomePage의 QueryBox 레이아웃 문제를 해결하고 SideNavigation 영향을 제거했습니다.
Out of Scope Changes check ✅ Passed 모든 변경사항이 QueryBox 레이아웃 수정과 관련되어 있으며, 제시된 이슈의 범위 내에 있습니다. 불필요한 변경이 없습니다.

✏️ 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 fix/#358-chatpage-textarea-layout

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

Copy link

@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: 1

🤖 Fix all issues with AI agents
In `@src/app/`(route)/chat/[id]/ChatPage.tsx:
- Around line 148-149: In ChatPage.tsx, the outer wrapper div that currently has
className "z-10 mb-15 flex w-full justify-center px-4" is using z-10 without a
positioned context; either remove "z-10" or add a positioning class (e.g.,
"relative") to that same div so the z-index takes effect; update the className
on the div with "z-10 mb-15 flex w-full justify-center px-4" accordingly and
ensure no other layout relies on that z-index.
🧹 Nitpick comments (1)
src/app/(route)/chat/[id]/ChatPage.tsx (1)

106-106: pb-[10.5rem]이 현재 레이아웃에서 과도할 수 있습니다.

이전에 QueryBox가 fixed 위치였을 때는 스크롤 영역 하단에 큰 패딩이 필요했지만, 현재는 QueryBox가 일반 문서 흐름(normal flow)에 있으므로 flex 레이아웃이 이미 공간을 확보해 줍니다. 10.5rem(168px)의 하단 패딩이 스크롤 영역 하단에 불필요한 빈 공간을 만들 수 있으니, 적절한 값으로 줄이는 것을 검토해 주세요.

Comment on lines +148 to +149
<div className="z-10 mb-15 flex w-full justify-center px-4">
<div className="w-full max-w-[816px] shrink-0">
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

z-10은 정적(static) 위치의 요소에서는 효과가 없습니다.

z-indexpositionrelative, absolute, fixed, sticky 중 하나일 때만 적용됩니다. 이 div는 별도의 position 속성이 없으므로 z-10이 무시됩니다. HomePage.tsx(Line 30)에서는 absolute와 함께 사용하여 정상 동작하지만, 여기서는 relative를 추가하거나 불필요하다면 z-10을 제거해야 합니다.

🔧 수정 제안
-      <div className="z-10 mb-15 flex w-full justify-center px-4">
+      <div className="relative z-10 mb-15 flex w-full justify-center px-4">
📝 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
<div className="z-10 mb-15 flex w-full justify-center px-4">
<div className="w-full max-w-[816px] shrink-0">
<div className="relative z-10 mb-15 flex w-full justify-center px-4">
<div className="w-full max-w-[816px] shrink-0">
🤖 Prompt for AI Agents
In `@src/app/`(route)/chat/[id]/ChatPage.tsx around lines 148 - 149, In
ChatPage.tsx, the outer wrapper div that currently has className "z-10 mb-15
flex w-full justify-center px-4" is using z-10 without a positioned context;
either remove "z-10" or add a positioning class (e.g., "relative") to that same
div so the z-index takes effect; update the className on the div with "z-10
mb-15 flex w-full justify-center px-4" accordingly and ensure no other layout
relies on that z-index.

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.

[Bug] 채팅 페이지 TextArea 위치 조정

1 participant