pl-fe: fix list height when rendering empty message card

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-19 17:17:09 +02:00
parent f4da4a3035
commit 9dce0668d1

View file

@ -177,7 +177,7 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList &
<div
className={listClassName}
style={{
height: virtualizer.getTotalSize(),
height: !showLoading && data.length ? virtualizer.getTotalSize() : undefined,
width: '100%',
position: 'relative',
}}