misc: misc optimizations

This commit is contained in:
Xyphyn committed 2023-09-18 16:10:16 -07:00
1 parent fe262c1cc1
commit 68bd45b034
10 files changed
+154 -96

No files matched your search

+10 -11
View File
@@ -1,6 +1,5 @@
<script lang="ts">
import Link from '$lib/components/input/Link.svelte'
import { Icon, Link as LinkIcon } from 'svelte-hero-icons'
export let url: string
export let thumbnail_url: string | undefined = undefined
@@ -10,14 +9,14 @@
<Link href={url} highlight nowrap />
{#if thumbnail_url}
<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>
<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}