diff --git a/frontend/src/lib/album/thumbnail.svelte b/frontend/src/lib/album/thumbnail.svelte index 0eb001b..a10f0a4 100644 --- a/frontend/src/lib/album/thumbnail.svelte +++ b/frontend/src/lib/album/thumbnail.svelte @@ -25,6 +25,7 @@ let srcSets = $derived( Object.entries(thumbnailSizes).flatMap(([sizeKey, maxWidth]) => Object.entries(formats).map(([extension, mime]) => ({ + key: `${image.id}|${sizeKey}|${extension}`, srcSet: `${StorageBaseUrl}/${image.hrefs[sizeKey]}.${extension} ${maxWidth}`, mime })) @@ -34,7 +35,7 @@ - {#each srcSets as srcset} + {#each srcSets as srcset (srcset.key)} {/each}