@@ -363,14 +363,15 @@ export function AddMembers({
363363 < Dialog open = { open } onClose = { onClose } className = 'relative z-10' >
364364 < div className = 'fixed inset-0 bg-black/30' aria-hidden = 'true' />
365365 < div className = 'fixed inset-0 flex items-center justify-center p-4' >
366- < 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' >
367- < Dialog . Title className = 'flex items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white' >
366+ < 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' >
367+ < Dialog . Title className = 'flex shrink-0 items-center justify-between text-lg font-medium leading-6 text-gray-900 dark:text-white' >
368368 { newChat ? 'Create New Chat' : 'Members' }
369369 < XMarkIcon
370370 className = 'h-6 w-6 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300'
371371 onClick = { onClose }
372372 />
373373 </ Dialog . Title >
374+ < div className = 'flex min-h-0 flex-1 flex-col overflow-y-auto' >
374375 { newChat && selectedUsers . length > 1 && (
375376 < div className = 'mt-4' >
376377 < input
@@ -448,7 +449,7 @@ export function AddMembers({
448449 className = 'w-full px-3 py-2 border border-gray-300 rounded-md dark:bg-gray-800 dark:text-white dark:border-gray-700'
449450 />
450451 </ div >
451- < div className = 'mt-4 max -h-80 overflow-y-auto ' >
452+ < div className = 'mt-4 min -h-0 flex-1 ' >
452453 { isSearching && (
453454 < p className = 'text-sm text-gray-500 dark:text-gray-400' >
454455 Searching...
@@ -547,8 +548,9 @@ export function AddMembers({
547548 ) ;
548549 } ) }
549550 </ div >
551+ </ div >
550552 { selectedUsers . length > 0 && (
551- < div className = 'mt-4' >
553+ < div className = 'mt-4 shrink-0 ' >
552554 < button
553555 type = 'button'
554556 disabled = { isAddingMembers }
0 commit comments