Fix menubar, add lazy loading, improve image quality, limit search results, filter browse artists

This commit is contained in:
2026-01-25 01:16:17 +00:00
committed by GitHub
parent 43a51b165b
commit b5fc05382e
6 changed files with 29 additions and 19 deletions

View File

@@ -36,6 +36,7 @@ interface AlbumArtworkProps extends Omit<
aspectRatio?: "portrait" | "square"
width?: number
height?: number
loading?: 'eager' | 'lazy'
}
export function AlbumArtwork({
@@ -43,6 +44,7 @@ export function AlbumArtwork({
aspectRatio = "portrait",
width,
height,
loading = 'lazy',
className,
...props
}: AlbumArtworkProps) {
@@ -160,7 +162,7 @@ export function AlbumArtwork({
onLoad={handleImageLoad}
onError={handleImageError}
priority={false}
loading="lazy"
loading={loading}
/>
) : (
<div className="w-full h-full bg-muted rounded flex items-center justify-center">