fix: margin in list mode

This commit is contained in:
Xylight committed 2024-06-03 13:56:36 -07:00
1 parent e569f0cf07
commit 33371fe640
3 files changed
+11 -7

No files matched your search

@@ -11,7 +11,7 @@
{#if (view == 'list' || view == 'compact') && !post.embed_title && (post.thumbnail_url || isImage(post.url))}
<div
class="w-24 sm:w-32 h-24 {$$props.class ?? ''}"
class="w-24 sm:w-32 h-24 group/media {$$props.class ?? ''}"
style={$$props.style ?? ''}
>
<svelte:element
@@ -27,7 +27,9 @@
<img
src={bestImageURL(post, true)}
loading="lazy"
class="object-cover overflow-hidden bg-slate-100 dark:bg-zinc-800 rounded-xl h-24 w-24 sm:w-32 border border-slate-200 dark:border-zinc-800"
class="object-cover overflow-hidden bg-slate-100 dark:bg-zinc-800 rounded-xl h-24 w-24 sm:w-32
border border-slate-200 dark:border-zinc-800 group-hover/media:border-slate-400
group-hover/media:dark:border-zinc-600 transition-colors"
alt={post.name}
/>
</svelte:element>