pl-fe: fix load more button margin
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
feab3af39c
commit
e5b3de326f
1 changed files with 5 additions and 1 deletions
|
@ -198,7 +198,11 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
|
||||||
if (autoloadMore || !hasMore || !onLoadMore) {
|
if (autoloadMore || !hasMore || !onLoadMore) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} 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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue