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
This commit is contained in:
@@ -23,8 +23,7 @@ export default function ContentCard({
|
|||||||
src={image.url}
|
src={image.url}
|
||||||
alt={image.meta.alt || image.meta.caption || ""}
|
alt={image.meta.alt || image.meta.caption || ""}
|
||||||
className={styles.image}
|
className={styles.image}
|
||||||
width={400}
|
fill
|
||||||
height={250}
|
|
||||||
sizes="(min-width: 768px) 413px, 100vw"
|
sizes="(min-width: 768px) 413px, 100vw"
|
||||||
focalPoint={image.focalPoint}
|
focalPoint={image.focalPoint}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user