pl-fe: fix load more button margin

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-15 23:39:39 +02:00
parent feab3af39c
commit e5b3de326f

View file

@ -198,7 +198,11 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
if (autoloadMore || !hasMore || !onLoadMore) {
return null;
} else {
return <LoadMore className={loadMoreClassName} visible={!isLoading} onClick={onLoadMore} />;
const button = <LoadMore visible={!isLoading} onClick={onLoadMore} />;
if (loadMoreClassName) return <div className={loadMoreClassName}>{button}</div>;
return button;
}
};