File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
routes/playlists/playlist/[slug] Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 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 }>
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments