From 15522ec9146f6f1956620355c44dea2a6a75b67c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 9 Oct 2023 18:26:23 +0200 Subject: refactor(components): replace ResponsiveImage with Figure component The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed. --- src/components/organisms/layout/summary.module.scss | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/organisms/layout/summary.module.scss') diff --git a/src/components/organisms/layout/summary.module.scss b/src/components/organisms/layout/summary.module.scss index b6cb4f4..9dc1a69 100644 --- a/src/components/organisms/layout/summary.module.scss +++ b/src/components/organisms/layout/summary.module.scss @@ -46,6 +46,7 @@ height: fun.convert-px(100); max-width: 100%; border: fun.convert-px(1) solid var(--color-border); + object-fit: scale-down; @include mix.media("screen") { @include mix.dimensions("sm") { -- cgit v1.2.3