diff --git a/apps/scandic-web/components/TempDesignSystem/TeaserCard/index.tsx b/apps/scandic-web/components/TempDesignSystem/TeaserCard/index.tsx index cce965e89..60995e00e 100644 --- a/apps/scandic-web/components/TempDesignSystem/TeaserCard/index.tsx +++ b/apps/scandic-web/components/TempDesignSystem/TeaserCard/index.tsx @@ -25,25 +25,18 @@ export default function TeaserCard({ }: TeaserCardProps) { const classNames = teaserCardVariants({ intent, alwaysStack, className }) - const imageWidth = - image && - Math.ceil( - image.dimensions.aspectRatio >= 1 - ? image.dimensions.aspectRatio * 200 - : 200 / image.dimensions.aspectRatio - ) - return (
{image && ( - {image.meta?.alt +
+ {image.meta?.alt +
)}
diff --git a/apps/scandic-web/components/TempDesignSystem/TeaserCard/teaserCard.module.css b/apps/scandic-web/components/TempDesignSystem/TeaserCard/teaserCard.module.css index 49f084d20..377eae9fd 100644 --- a/apps/scandic-web/components/TempDesignSystem/TeaserCard/teaserCard.module.css +++ b/apps/scandic-web/components/TempDesignSystem/TeaserCard/teaserCard.module.css @@ -5,6 +5,12 @@ overflow: hidden; } +.imageContainer { + width: 100%; + height: 200px; + position: relative; +} + .default { background-color: var(--Base-Surface-Subtle-Normal); }