Merge pull request #231 from ArnasDon/fix/inbox-contact-list-scroll

fix(inbox): let the conversation list scroll instead of clipping
This commit is contained in:
Arnas Donauskas 2026-06-08 19:29:40 +03:00 committed by GitHub
commit c3f8b3f71d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,8 +187,13 @@ export function ConversationList({
</DropdownMenu> </DropdownMenu>
</div> </div>
{/* Conversation Items */} {/* Conversation Items.
<ScrollArea className="flex-1"> `min-h-0` is load-bearing: a flex child defaults to
min-height:auto, so without it this ScrollArea grows to fit
every conversation instead of shrinking to the remaining
space — the list then overflows and gets clipped by the
parent's overflow-hidden with no scrollbar (issue #229). */}
<ScrollArea className="min-h-0 flex-1">
{loading ? ( {loading ? (
<div className="flex items-center justify-center py-12"> <div className="flex items-center justify-center py-12">
<div className="h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent" /> <div className="h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent" />