fix(web): use fallback image if shared asset isn't resized (#11704)

* fix(web): use fallback image if shared asset isn't resized

* remove test-data index file
This commit is contained in:
Michel Heusschen
2024-08-11 21:43:07 +02:00
committed by GitHub
parent 9ed04588b8
commit 30aa2c9b82
5 changed files with 21 additions and 22 deletions

View File

@@ -15,7 +15,7 @@
<div class="relative aspect-square shrink-0">
{#if link?.album}
<AlbumCover album={link.album} class={className} {preload} />
{:else if link.assets[0]}
{:else if link.assets[0]?.resized}
<AssetCover
alt={$t('individual_share')}
class={className}