Skip to content

Commit 6162859

Browse files
authored
fix: blabsy modals (#914)
1 parent 93deeb5 commit 6162859

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

platforms/blabsy/client/src/components/chat/group-settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ export function GroupSettings({
145145
<Dialog open={open} onClose={onClose} className='relative z-10'>
146146
<div className='fixed inset-0 bg-black/30' aria-hidden='true' />
147147
<div className='fixed inset-0 flex items-center justify-center p-4'>
148-
<Dialog.Panel className='w-full max-w-md transform overflow-visible rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all dark:bg-gray-900'>
149-
<Dialog.Title className='flex items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white'>
148+
<Dialog.Panel className='flex max-h-[90vh] w-full max-w-md flex-col overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all dark:bg-gray-900'>
149+
<Dialog.Title className='shrink-0 flex items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white'>
150150
{isGroup
151151
? isAdmin
152152
? 'Edit Group Settings'
@@ -158,7 +158,7 @@ export function GroupSettings({
158158
/>
159159
</Dialog.Title>
160160
<form
161-
className='mt-4 flex flex-col gap-4'
161+
className='mt-4 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto'
162162
onSubmit={(e) => {
163163
e.preventDefault();
164164
void handleSave();

platforms/blabsy/client/src/components/chat/member-list.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ export function MemberList({
153153
<Dialog open={open} onClose={onClose} className='relative z-10'>
154154
<div className='fixed inset-0 bg-black/30' aria-hidden='true' />
155155
<div className='fixed inset-0 flex items-center justify-center p-4'>
156-
<Dialog.Panel className='w-full max-w-md transform overflow-visible rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all dark:bg-gray-900'>
157-
<Dialog.Title className='flex items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white'>
156+
<Dialog.Panel className='flex max-h-[90vh] w-full max-w-md flex-col overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all dark:bg-gray-900'>
157+
<Dialog.Title className='shrink-0 flex items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white'>
158158
Members
159159
<XMarkIcon
160160
className='h-6 w-6 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300'
161161
onClick={onClose}
162162
/>
163163
</Dialog.Title>
164-
<div className='mt-4 flex flex-col gap-2'>
164+
<div className='mt-4 flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto'>
165165
{currentChat?.participants.map((participantId) => (
166166
<div
167167
key={participantId}
@@ -334,7 +334,7 @@ export function MemberList({
334334
</div>
335335
{((user && currentChat?.admins?.includes(user?.id)) ||
336336
currentChat?.owner === user?.id) && (
337-
<div className='flex justify-center gap-2 mt-4'>
337+
<div className='flex shrink-0 justify-center gap-2 mt-4'>
338338
<button
339339
type='button'
340340
onClick={onOpenAddMemberModal}

0 commit comments

Comments
 (0)