Enhance AlbumCard and AlbumDetail components for improved layout and performance

- Added prefetching to the AlbumCard component to optimize navigation.
- Set minimum height for the AlbumDetail page to ensure consistent layout across different screen sizes.
This commit is contained in:
m4x809 2025-10-25 04:01:17 +02:00
parent e48909e481
commit a223b75926
Signed by: m4x809
SSH key fingerprint: SHA256:YCoFF78p2DUP94EnCScqLwldjkKDwdKSZq3r8p/6EiU
2 changed files with 2 additions and 0 deletions

View file

@ -37,6 +37,7 @@ export default function AlbumCard({ album }: { album: Album }) {
>
<Card
component={Link}
prefetch={true}
href={`/album/${album.id}`}
className="cursor-pointer"
style={{

View file

@ -42,6 +42,7 @@ export default async function AlbumDetail({ params }: { params: Promise<{ albumI
className="min-h-screen"
style={{
background: theme.background.gradient,
minHeight: "100vh",
viewTransitionName: `album-card-background-${album.id}`,
}}
>