From 58eeaf0e7e3a87f0c7a7bde0ad56f2ae57868fac Mon Sep 17 00:00:00 2001 From: Nikola Ganchev Date: Tue, 26 Sep 2023 16:33:58 +0300 Subject: [PATCH] Use object-fit: cover for autofilled article previews --- src/lib/ArticlePreview.svelte | 8 ++------ src/lib/BigArticlePreview.svelte | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/ArticlePreview.svelte b/src/lib/ArticlePreview.svelte index b2efe98..e156f3d 100644 --- a/src/lib/ArticlePreview.svelte +++ b/src/lib/ArticlePreview.svelte @@ -8,9 +8,9 @@
{#if preview.postImage} - {preview.postImage.alt} + {preview.postImage.alt} {:else} - + {$seoAutofillImage.alt} {/if}
@@ -37,10 +37,6 @@ width: 100%; } - .preview-image.logo { - object-fit: contain; - } - .content { display: flex; padding: 1rem; diff --git a/src/lib/BigArticlePreview.svelte b/src/lib/BigArticlePreview.svelte index 262fc4e..ed548db 100644 --- a/src/lib/BigArticlePreview.svelte +++ b/src/lib/BigArticlePreview.svelte @@ -43,7 +43,6 @@ } .preview-image.logo { - object-fit: contain; background-color: #FFFFFF; }