Skip to content

Commit 9269424

Browse files
authored
fix: fixed blabsy chat overflow. (#285)
1 parent f1884d1 commit 9269424

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

platforms/blabsy/src/components/chat/chat-window.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function ChatWindow(): JSX.Element {
206206
<div className='flex h-full flex-col'>
207207
{currentChat ? (
208208
<>
209-
<div className='flex items-center justify-between gap-3 border-b border-gray-200 p-4 dark:border-gray-800'>
209+
<div className='flex h-fit items-center justify-between gap-3 border-b border-gray-200 p-4 dark:border-gray-800'>
210210
<div className='flex items-center gap-3'>
211211
<div className='relative flex h-10 w-10 items-center justify-center overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700'>
212212
{otherUser?.photoURL ? (
@@ -263,7 +263,7 @@ export function ChatWindow(): JSX.Element {
263263
</div>
264264
)}
265265
</div>
266-
<div className='flex-1 overflow-y-auto p-4'>
266+
<div className='flex-1 p-4 overflow-y-auto'>
267267
{isLoading ? (
268268
<div className='flex h-full w-full items-center justify-center'>
269269
<Loading className='h-8 w-8' />

platforms/blabsy/src/components/chat/chat.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { ChatWindow } from './chat-window';
33

44
export function Chat(): JSX.Element {
55
return (
6-
<main className='min-h-screen w-full max-w-5xl mt-8'>
6+
<main className='min-h-full w-full max-w-5xl pt-8'>
77
<div className='grid h-[calc(100vh-4rem)] grid-cols-1 gap-4 md:grid-cols-[350px_1fr]'>
8-
<div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
8+
<div className='max-h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
99
<ChatList />
1010
</div>
11-
<div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
11+
<div className='h-[calc(100vh-4rem)] rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
1212
<ChatWindow />
1313
</div>
1414
</div>

0 commit comments

Comments
 (0)