From db0f2ed0f9a9395f6028bf3a1c04608cd90ec946 Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Thu, 12 Jun 2025 11:34:35 +0200 Subject: [PATCH] fix: remove explicit width and height on carousel images to stop next warnings now uses fill and lets the width and height from css decide --- apps/scandic-web/components/ContentCard/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/scandic-web/components/ContentCard/index.tsx b/apps/scandic-web/components/ContentCard/index.tsx index 196264865..a77bc66f8 100644 --- a/apps/scandic-web/components/ContentCard/index.tsx +++ b/apps/scandic-web/components/ContentCard/index.tsx @@ -23,8 +23,7 @@ export default function ContentCard({ src={image.url} alt={image.meta.alt || image.meta.caption || ""} className={styles.image} - width={400} - height={250} + fill sizes="(min-width: 768px) 413px, 100vw" focalPoint={image.focalPoint} />