diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index f83456eb..3be9b70e 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -85,15 +85,21 @@ > -
- -
- {#if view == 'list' || view == 'compact'} - - {/if} + {#key post.post.url} +
+ +
+ {#if view == 'list' || view == 'compact'} + + {/if} + {/key} {#if post.post.body && !post.post.nsfw && view != 'compact' && !hideBody} {/if} diff --git a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte index 782b2573..6e7cdd4f 100644 --- a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte +++ b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte @@ -10,25 +10,23 @@ {#if (view == 'list' || view == 'compact') && !post.embed_title && (post.thumbnail_url || isImage(post.url))} -
- {#if !$userSettings.expandImages || (post.thumbnail_url && !isImage(post.url))} - - - - - {:else} - - {/if} +
+ showImage(bestImageURL(post, false, 2048))} + role="button" + tabindex="0" + > + {post.name} +
{/if}