fix: broken margins with compact mode
This commit is contained in:
1 parent
1834b90375
commit
5eee51864e
4 files changed
+8
-4
No files matched your search
@@ -96,6 +96,7 @@
|
||||
<PostMediaCompact
|
||||
{view}
|
||||
bind:post={post.post}
|
||||
class="ml-2 flex-shrink"
|
||||
style="grid-area: media;"
|
||||
/>
|
||||
{/if}
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</span>
|
||||
|
||||
<div
|
||||
class="flex flex-row items-center place-self-end overflow-auto gap-2 [&>*]:flex-shrink-0 ml-2"
|
||||
class="flex flex-row items-center overflow-auto gap-2 [&>*]:flex-shrink-0"
|
||||
style="grid-area: badges;"
|
||||
>
|
||||
{#if badges.nsfw}
|
||||
|
||||
@@ -10,7 +10,10 @@
|
||||
</script>
|
||||
|
||||
{#if (view == 'list' || view == 'compact') && !post.embed_title && (post.thumbnail_url || isImage(post.url))}
|
||||
<div class="w-32 h-24" style={$$props.style ?? ''}>
|
||||
<div
|
||||
class="w-24 sm:w-32 h-24 {$$props.class ?? ''}"
|
||||
style={$$props.style ?? ''}
|
||||
>
|
||||
<svelte:element
|
||||
this={!$userSettings.expandImages ||
|
||||
(post.thumbnail_url && !isImage(post.url))
|
||||
@@ -24,7 +27,7 @@
|
||||
<img
|
||||
src={bestImageURL(post, true)}
|
||||
loading="lazy"
|
||||
class="object-cover overflow-hidden bg-slate-100 dark:bg-zinc-800 rounded-xl h-24 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"
|
||||
alt={post.name}
|
||||
/>
|
||||
</svelte:element>
|
||||
|
||||
Reference in new issue
Block a user