mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
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:
commit
c3f8b3f71d
@ -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" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user