fix: entry list grow, closes #165

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-07-29 19:14:09 +08:00
parent fb63d7d259
commit b3b882c5a6
@@ -177,7 +177,13 @@ export function EntryColumn() {
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0.01, y: -100 }}
>
<ScrollArea.ScrollArea mask={false} ref={scrollRef} flex rootClassName="h-full">
<ScrollArea.ScrollArea
mask={false}
ref={scrollRef}
flex
rootClassName="h-full"
viewportClassName="[&>div]:grow flex"
>
{virtuosoOptions.totalCount === 0 ? (
entries.isLoading ?
(
@@ -401,7 +407,7 @@ const EmptyList = forwardRef<HTMLDivElement, HTMLMotionProps<"div">>(
const unreadOnly = useGeneralSettingKey("unreadOnly")
return (
<m.div
className="-mt-6 flex h-full flex-col items-center justify-center gap-2 text-zinc-400"
className="-mt-6 flex h-full grow flex-col items-center justify-center gap-2 text-zinc-400"
{...props}
ref={ref}
>