Skip to content

Commit 35b8ff9

Browse files
docs: make album artwork same size on music example (#1248)
Co-authored-by: Hunter Johnston <[email protected]>
1 parent e49d1dd commit 35b8ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sites/docs/src/routes/(app)/examples/music/(components)/album-artwork.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
<img
2121
class={cn(
2222
"h-auto w-auto object-cover transition-all hover:scale-105",
23+
`w-[${width}px]`,
24+
`h-[${height}px]`,
2325
aspectRatio === "portrait" ? "aspect-[3/4]" : "aspect-square"
2426
)}
2527
src={album.cover}
2628
alt={album.name}
27-
{width}
28-
{height}
2929
/>
3030
</div>
3131
</ContextMenu.Trigger>

0 commit comments

Comments
 (0)