From b90703d9f8b30379aa1bafe8b20bdbebdf118004 Mon Sep 17 00:00:00 2001 From: Xylight Date: Fri, 12 Jul 2024 17:46:59 -0700 Subject: [PATCH] misc: tweak compact mode icons --- src/lib/components/lemmy/post/helpers.ts | 5 ++++- .../components/lemmy/post/media/PostMediaCompact.svelte | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/components/lemmy/post/helpers.ts b/src/lib/components/lemmy/post/helpers.ts index 07167990..4be6c93a 100644 --- a/src/lib/components/lemmy/post/helpers.ts +++ b/src/lib/components/lemmy/post/helpers.ts @@ -41,7 +41,10 @@ export const optimizeImageURL = ( if (width > 0) { url.searchParams.append( 'thumbnail', - findClosestNumber([128, 256, 512, 728, 1024, 1536], width).toString() + findClosestNumber( + [128, 196, 256, 512, 728, 1024, 1536], + width + ).toString() ) } diff --git a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte index 1adab431..14bfafad 100644 --- a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte +++ b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte @@ -56,7 +56,7 @@ > {#if post.thumbnail_url || isImage(post.url)} - + {/if} {:else}