pl-fe: ScrollableList: Fix height for lists displaying placeholders

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-08 13:20:14 +02:00
parent b910f4d4cd
commit 17d0cf7562

View file

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