pl-fe: ScrollableList: Fix height for lists displaying placeholders
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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',
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user