misc: improve image thumbnails
This commit is contained in:
1 parent
1d13f4b0be
commit
386f738e6a
1 file changed
+9
-1
@@ -49,9 +49,17 @@
|
|||||||
srcset={bestImageURL(post, false, 512)}
|
srcset={bestImageURL(post, false, 512)}
|
||||||
media="(max-width: 512px)"
|
media="(max-width: 512px)"
|
||||||
/>
|
/>
|
||||||
|
<source
|
||||||
|
srcset={bestImageURL(post, false, 1024)}
|
||||||
|
media="(max-width: 1024px)"
|
||||||
|
/>
|
||||||
|
<source
|
||||||
|
srcset={bestImageURL(post, false, 1512)}
|
||||||
|
media="(max-width: 1512px)"
|
||||||
|
/>
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||||||
<img
|
<img
|
||||||
src={bestImageURL(post, false, 1024)}
|
src={bestImageURL(post, false, 2048)}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="max-h-[inherit] max-w-full h-auto z-30
|
class="max-h-[inherit] max-w-full h-auto z-30
|
||||||
transition-opacity duration-300 object-contain mx-auto"
|
transition-opacity duration-300 object-contain mx-auto"
|
||||||
|
|||||||
Reference in new issue
Block a user