refactor(web): migrate 4 open-coded cover URL sites to coverUrl() helper (C1 small-win)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { qk } from '$lib/api/queries';
|
||||
import type { LidarrQuarantineMineRow, LidarrQuarantineReason } from '$lib/api/types';
|
||||
import ApiErrorBanner from '$lib/components/ApiErrorBanner.svelte';
|
||||
import { coverUrl } from '$lib/media/covers';
|
||||
|
||||
const client = useQueryClient();
|
||||
const queryStore = createMyQuarantineQuery();
|
||||
@@ -61,7 +62,7 @@
|
||||
<div class="flex h-14 w-14 shrink-0 items-center justify-center rounded-md bg-surface-hover">
|
||||
{#if row.album_cover_art_path}
|
||||
<img
|
||||
src={`/api/albums/${row.album_id}/cover`}
|
||||
src={coverUrl(row.album_id)}
|
||||
alt=""
|
||||
class="h-full w-full rounded-md object-cover"
|
||||
loading="lazy"
|
||||
|
||||
Reference in New Issue
Block a user