diff --git a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte index ddbdc542..62adb789 100644 --- a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte +++ b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte @@ -17,76 +17,74 @@ export let type: MediaType = 'none' -{#if view == 'compact' || view == 'list'} -
- {#if post.alt_text} - - - ALT - -
- {post.alt_text} -
-
- {/if} - { - if (type == 'image') { - showImage(bestImageURL(post, false, 2048)) - } - }} - role="button" - tabindex="0" +
+ {#if post.alt_text} + - {#if post.thumbnail_url || isImage(post.url)} - {post.name} - {#if type != 'image'} -
- -
- {/if} - {:else} + + ALT + +
+ {post.alt_text} +
+
+ {/if} + { + if (type == 'image') { + showImage(bestImageURL(post, false, 2048)) + } + }} + role="button" + tabindex="0" + > + {#if post.thumbnail_url || isImage(post.url)} + {post.name} + {#if type != 'image'}
- +
{/if} -
-
-{/if} + {:else} +
+ +
+ {/if} +
+