From cfac8997d5c307cfaa67dab426e6cce437e1a1ae Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 4 Mar 2024 18:46:52 -0800 Subject: [PATCH] fix: spend 4 hours and accomplish nothing --- src/lib/components/lemmy/post/Post.svelte | 26 +++++++++++++++---- .../components/lemmy/post/PostActions.svelte | 2 +- src/lib/components/lemmy/post/PostBody.svelte | 2 +- .../lemmy/post/media/PostMediaCompact.svelte | 2 +- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index 122f4c2c..230531c5 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -34,7 +34,7 @@ - {#if post.post.body && !post.post.nsfw && view != 'compact'} - - {/if} {#if view == 'list' || view == 'compact'} - + + {/if} + {#if post.post.body && !post.post.nsfw && view != 'compact'} + {/if} {#if actions} {/if} + + \ No newline at end of file diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte index 4741848d..7d1f4b55 100644 --- a/src/lib/components/lemmy/post/PostActions.svelte +++ b/src/lib/components/lemmy/post/PostActions.svelte @@ -93,7 +93,7 @@ {/if} -
+
{#if (view == 'list' || view == 'compact') && !post.embed_title && (post.thumbnail_url || isImage(post.url))} -
+
{#if !$userSettings.expandImages || (post.thumbnail_url && !isImage(post.url))}