refactor(web): migrate 4 open-coded cover URL sites to coverUrl() helper (C1 small-win)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
import { errMessage } from '$lib/api/errors';
|
||||
import { pushToast } from '$lib/stores/toast.svelte';
|
||||
import { playRadio } from '$lib/player/store.svelte';
|
||||
import { coverUrl } from '$lib/media/covers';
|
||||
import Modal from '$lib/components/Modal.svelte';
|
||||
import type { AdminQuarantineRow, LidarrQuarantineReason } from '$lib/api/types';
|
||||
|
||||
@@ -191,7 +192,7 @@
|
||||
>
|
||||
{#if r.album_id}
|
||||
<img
|
||||
src={`/api/albums/${r.album_id}/cover`}
|
||||
src={coverUrl(r.album_id)}
|
||||
alt=""
|
||||
class="h-full w-full rounded-md object-cover"
|
||||
loading="lazy"
|
||||
|
||||
Reference in New Issue
Block a user