Skip to content

Commit 6863555

Browse files
refactor: Update FreeChatPage component layout
This commit updates the layout of the FreeChatPage component in the app/dashboard/student/chat/[chatId]/free-chat directory. The changes include adjusting the height calculation for the chat container to ensure it fills the entire viewport on all screen sizes. This improvement enhances the user experience by providing a consistent and visually appealing chat interface.
1 parent 2e89c66 commit 6863555

File tree

1 file changed

+1
-2
lines changed
  • app/dashboard/student/chat/[chatId]/free-chat

1 file changed

+1
-2
lines changed

app/dashboard/student/chat/[chatId]/free-chat/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export default async function FreeChatPage ({
2727
return (
2828

2929
<>
30-
<div className='flex flex-col gap-4 overflow-y-auto h-[calc(100vh-4rem)]'>
31-
30+
<div className='flex flex-col gap-4 overflow-y-auto h-[calc(100vh)] md:h-[calc(100vh-4rem)]'>
3231
<FreeChat
3332
chatId={Number(params.chatId)}
3433
initialMessages={

0 commit comments

Comments
 (0)