handle manual grid rows on paginated lists

This commit is contained in:
jeffvli
2025-11-19 16:07:36 -08:00
parent 350d358c6b
commit 69beca764e
3 changed files with 6 additions and 0 deletions
@@ -25,6 +25,7 @@ export const AlbumListPaginatedGrid = forwardRef<any, AlbumListPaginatedGridProp
{ {
gap = 'md', gap = 'md',
itemsPerPage = 100, itemsPerPage = 100,
itemsPerRow,
query = { query = {
sortBy: AlbumListSort.NAME, sortBy: AlbumListSort.NAME,
sortOrder: SortOrder.ASC, sortOrder: SortOrder.ASC,
@@ -75,6 +76,7 @@ export const AlbumListPaginatedGrid = forwardRef<any, AlbumListPaginatedGridProp
to: scrollOffset ?? 0, to: scrollOffset ?? 0,
type: 'offset', type: 'offset',
}} }}
itemsPerRow={itemsPerRow}
itemType={LibraryItem.ALBUM} itemType={LibraryItem.ALBUM}
onScrollEnd={handleOnScrollEnd} onScrollEnd={handleOnScrollEnd}
ref={ref} ref={ref}
@@ -25,6 +25,7 @@ export const PlaylistListPaginatedGrid = forwardRef<any, PlaylistListPaginatedGr
{ {
gap = 'md', gap = 'md',
itemsPerPage = 100, itemsPerPage = 100,
itemsPerRow,
query = { query = {
sortBy: PlaylistListSort.NAME, sortBy: PlaylistListSort.NAME,
sortOrder: SortOrder.ASC, sortOrder: SortOrder.ASC,
@@ -75,6 +76,7 @@ export const PlaylistListPaginatedGrid = forwardRef<any, PlaylistListPaginatedGr
to: scrollOffset ?? 0, to: scrollOffset ?? 0,
type: 'offset', type: 'offset',
}} }}
itemsPerRow={itemsPerRow}
itemType={LibraryItem.PLAYLIST} itemType={LibraryItem.PLAYLIST}
onScrollEnd={handleOnScrollEnd} onScrollEnd={handleOnScrollEnd}
ref={ref} ref={ref}
@@ -19,6 +19,7 @@ export const SongListPaginatedGrid = forwardRef<any, SongListPaginatedGridProps>
{ {
gap = 'md', gap = 'md',
itemsPerPage = 100, itemsPerPage = 100,
itemsPerRow,
query = { query = {
sortBy: SongListSort.NAME, sortBy: SongListSort.NAME,
sortOrder: SortOrder.ASC, sortOrder: SortOrder.ASC,
@@ -60,6 +61,7 @@ export const SongListPaginatedGrid = forwardRef<any, SongListPaginatedGridProps>
currentPage={currentPage} currentPage={currentPage}
data={data || []} data={data || []}
gap={gap} gap={gap}
itemsPerRow={itemsPerRow}
itemType={LibraryItem.SONG} itemType={LibraryItem.SONG}
ref={ref} ref={ref}
rows={rows} rows={rows}