From b94e7cd6fc3ed25f86a406166c7ce5e317eaf1f9 Mon Sep 17 00:00:00 2001 From: Niclas Date: Mon, 9 Dec 2024 12:38:03 +0100 Subject: [PATCH] fix: news item container --- source/sass/component/_newsitem.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/sass/component/_newsitem.scss b/source/sass/component/_newsitem.scss index 903fb52d7..3e7d60258 100644 --- a/source/sass/component/_newsitem.scss +++ b/source/sass/component/_newsitem.scss @@ -58,9 +58,9 @@ $c-newsitem-heading-color: var(--c-newsitem-heading-color, $color-primary) !defa margin-top: 0; } - .c-newsitem__image img { - height: 100%; - width: 100%; + .c-newsitem__image-container { + position: relative; + aspect-ratio: 16/9; } .c-newsitem__content {