feat(SW-365): Added focal point to imagevault typings and to image component

This commit is contained in:
Erik Tiekstra
2024-10-15 15:54:39 +02:00
parent b33381d1b4
commit 59ffbef8fb
6 changed files with 56 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ export default function Card({
imageWidth =
imageWidth ||
(backgroundImage && "dimensions" in backgroundImage
(backgroundImage?.dimensions
? backgroundImage.dimensions.aspectRatio * imageHeight
: 420)