fix: double thumbnails in compact view
This commit is contained in:
1 parent
a4f3b9a98d
commit
429a140ad7
3 files changed
+25
-21
No files matched your search
@@ -52,16 +52,18 @@
|
||||
</a>
|
||||
{/if}
|
||||
</Material>
|
||||
{:else if thumbnail_url}
|
||||
{:else}
|
||||
<Link href={url} highlight nowrap />
|
||||
<a href={url}>
|
||||
<img
|
||||
src={thumbnail_url}
|
||||
class="rounded-md max-w-[300px] w-full h-auto aspect-video object-cover bg-slate-200 dark:bg-zinc-800"
|
||||
width={600}
|
||||
height={400}
|
||||
alt=""
|
||||
class:blur-3xl={nsfw}
|
||||
/>
|
||||
</a>
|
||||
{#if thumbnail_url && !compact}
|
||||
<a href={url}>
|
||||
<img
|
||||
src={thumbnail_url}
|
||||
class="rounded-md max-w-[300px] w-full h-auto aspect-video object-cover bg-slate-200 dark:bg-zinc-800"
|
||||
width={600}
|
||||
height={400}
|
||||
alt=""
|
||||
class:blur-3xl={nsfw}
|
||||
/>
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
Reference in new issue
Block a user