feat: aspect-ratio instead of width measurer

This commit is contained in:
ner committed 2024-08-31 21:36:16 +03:00
1 parent 375ebf93d9
commit 279a61ddcd
15 files changed
+168 -313

No files matched your search

+3 -5
View File
@@ -49,14 +49,12 @@ const List: FC<Props> = ({ pages, hasNextPage, fetchNextPage, onPreviewClose, ty
<>
<VirtuosoGrid
useWindowScroll
listClassName='flex gap-2 flex-wrap justify-center grow empty:hidden opacity-0 animate-fade-in-slide-in'
customScrollParent={customScrollParent}
totalCount={shows.length}
overscan={4}
endReached={handleFetchMore}
data={shows}
context={context}
components={components}
listClassName='flex gap-2 flex-wrap justify-center grow empty:hidden opacity-0 animate-fade-in-slide-in'
customScrollParent={customScrollParent}
endReached={handleFetchMore}
/>
<div className='h-2 w-full' />
</>