Skip to content

Commit 4870ac4

Browse files
committed
hopefully fix?
1 parent ee92cb0 commit 4870ac4

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

src/lib/components/ListTrack.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,14 @@
245245
{#if track.image}
246246
{#await OPFS.getImageUrl(track.image as string) then imageUrl}
247247
<Lazy height={40} keep={true}>
248-
<img
249-
src={imageUrl}
250-
alt="{track.title} - {track.artist}"
251-
class="h-10 w-10 shrink-0 rounded-md object-cover"
252-
draggable="false"
253-
/>
248+
<div class="h-10 w-10 shrink-0">
249+
<img
250+
src={imageUrl}
251+
alt="{track.title} - {track.artist}"
252+
class="h-full w-full rounded-md object-cover"
253+
draggable="false"
254+
/>
255+
</div>
254256
</Lazy>
255257
{:catch}
256258
<Lazy height={40} keep={true}>

src/routes/playlists/playlist/[slug]/+page.svelte

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,18 @@
203203
<div class="w-full md:w-1/2 lg:w-2/5">
204204
{#if playlist?.image}
205205
{#await OPFS.getImageUrl(playlist.image as string) then imageUrl}
206-
<img
207-
src={imageUrl}
208-
alt={playlist?.name}
209-
class="aspect-square w-full max-w-sm rounded-lg object-cover shadow-md"
210-
/>
206+
<div class="aspect-square max-w-sm w-full">
207+
<img
208+
src={imageUrl}
209+
alt={playlist?.name}
210+
class="w-full h-full rounded-lg object-cover shadow-md"
211+
/>
212+
</div>
211213
{:catch}
212-
<div class="bg-surface-container aspect-square w-full max-w-sm rounded-lg"></div>
214+
<div class="bg-surface-container aspect-square max-w-sm w-full rounded-lg"></div>
213215
{/await}
214216
{:else}
215-
<div class="bg-surface-container aspect-square w-full max-w-sm rounded-lg"></div>
217+
<div class="bg-surface-container aspect-square max-w-sm w-full rounded-lg"></div>
216218
{/if}
217219
{#if editModeOn}
218220
<div class="mt-4 space-y-2">

0 commit comments

Comments
 (0)