Update scrollArea for relevant pages

This commit is contained in:
jeffvli 2023-07-21 18:04:05 -07:00
parent a8dfc7bcd6
commit bbee3fc655
3 changed files with 4 additions and 8 deletions

View File

@ -254,8 +254,6 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
const showGenres = detailQuery?.data?.genres ? detailQuery?.data?.genres.length !== 0 : false;
const { intersectRef, tableContainerRef } = useFixedTableHeader();
const handleGeneralContextMenu = useHandleGeneralContextMenu(
LibraryItem.ALBUM,
ALBUM_CONTEXT_MENU_ITEMS,
@ -269,7 +267,6 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
<DetailContainer>
<Box component="section">
<Group
ref={showGenres ? null : intersectRef}
py="1rem"
spacing="md"
>
@ -308,7 +305,6 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
</Box>
{showGenres && (
<Box
ref={showGenres ? intersectRef : null}
component="section"
py="1rem"
>
@ -334,14 +330,12 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
</Group>
</Box>
)}
<Box
ref={tableContainerRef}
style={{ minHeight: '300px' }}
>
<Box style={{ minHeight: '300px' }}>
<VirtualTable
ref={tableRef}
autoFitColumns
autoHeight
stickyHeader
suppressCellFocus
suppressHorizontalScroll
suppressLoadingOverlay

View File

@ -50,6 +50,7 @@ const AlbumDetailRoute = () => {
</LibraryHeaderBar.Title>
</LibraryHeaderBar>
),
offset: 200,
target: headerRef,
}}
>

View File

@ -51,6 +51,7 @@ const AlbumArtistDetailRoute = () => {
</LibraryHeaderBar.Title>
</LibraryHeaderBar>
),
offset: 200,
target: headerRef,
}}
>