pl-fe: styles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1727dc4e1b
commit
5f9743604f
1 changed files with 2 additions and 1 deletions
|
@ -94,6 +94,7 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList>(
|
|||
count: data.length + (hasMore ? 1 : 0),
|
||||
overscan: 3,
|
||||
estimateSize: () => estimatedSize,
|
||||
enabled: true,
|
||||
}) : useVirtualizer({
|
||||
count: data.length + (hasMore ? 1 : 0),
|
||||
overscan: 3,
|
||||
|
@ -129,7 +130,7 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList>(
|
|||
if (autoloadMore || !hasMore || !onLoadMore) {
|
||||
return null;
|
||||
} else {
|
||||
const button = <LoadMore className='mt-2' visible={!isLoading} onClick={onLoadMore} />;
|
||||
const button = <LoadMore className='mt-4' visible={!isLoading} onClick={onLoadMore} />;
|
||||
|
||||
if (loadMoreClassName) return <div className={loadMoreClassName}>{button}</div>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue