misc: tweak image

This commit is contained in:
Xyphyn committed 2023-08-13 20:15:19 -07:00
1 parent 5ea2f314f3
commit 6630b89bce
1 file changed
+2 -2
+2 -2
View File
@@ -78,7 +78,7 @@
<!--disabled preloads here since most people will hover over every image while scrolling--> <!--disabled preloads here since most people will hover over every image while scrolling-->
<a <a
href="/post/{getInstance()}/{post.post.id}" href="/post/{getInstance()}/{post.post.id}"
class="self-start overflow-hidden z-10 relative bg-slate-200 dark:bg-zinc-800 rounded-md" class="self-start overflow-hidden z-10 relative bg-slate-200 dark:bg-zinc-800 rounded-md max-w-full"
data-sveltekit-preload-data="off" data-sveltekit-preload-data="off"
aria-label={post.post.name} aria-label={post.post.name}
> >
@@ -97,7 +97,7 @@
<img <img
src="{post.post.url}?thumbnail=512&format=webp" src="{post.post.url}?thumbnail=512&format=webp"
loading="lazy" loading="lazy"
class="object-cover rounded-md max-h-[80vh] h-auto z-30 opacity-0 transition-opacity duration-300" class="max-w-full object-cover rounded-md max-h-[80vh] h-auto z-30 opacity-0 transition-opacity duration-300"
class:opacity-100={loaded} class:opacity-100={loaded}
width={512} width={512}
height={300} height={300}