Skip to content

Commit dfcc70e

Browse files
committed
fix: 채팅 input 하단 고정
1 parent 921711c commit dfcc70e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/pages/Chat.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,11 @@ const Chat = () => {
9999
};
100100

101101
return (
102-
<div className="flex w-[360px] flex-col bg-white md:w-[375px] lg:w-[500px]">
102+
<div className="flex h-screen w-[360px] flex-col bg-white md:w-[375px] lg:w-[500px]">
103103
<Header title={chatTitle} />
104104

105-
<div className="mt-6 flex-1 space-y-4 overflow-y-auto px-[20px]">
106-
<div>
107-
<IntroGuide />
108-
</div>
109-
105+
<div className="flex-1 space-y-4 overflow-y-auto px-[20px] pt-6">
106+
<IntroGuide />
110107
{/* 메시지 리스트 */}
111108
{messages.map((msg, index) => (
112109
<div
@@ -123,7 +120,6 @@ const Chat = () => {
123120
className="mr-[9px] h-[36px] w-[36px] shrink-0 rounded-full border border-gray-200 object-cover"
124121
/>
125122
)}
126-
127123
{/* 채팅 메시지 */}
128124
<div className="mt-3.5">
129125
<ChatMessage
@@ -136,6 +132,7 @@ const Chat = () => {
136132

137133
<div ref={bottomRef} />
138134
</div>
135+
139136
<ChatActionBar
140137
isOpen={isOpen}
141138
setIsOpen={handleToggleTips}
@@ -144,6 +141,7 @@ const Chat = () => {
144141
onKeyUp={handleKeyup}
145142
onSend={() => handleSend(input)}
146143
/>
144+
147145
{isOpen && <TipsMenuContainer />}
148146
</div>
149147
);

0 commit comments

Comments
 (0)