pl-fe: styles

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-19 01:09:55 +02:00
parent 1727dc4e1b
commit 5f9743604f

View file

@ -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>;