diff --git a/packages/code-du-travail-frontend/src/fiche-service-public/components/Image.tsx b/packages/code-du-travail-frontend/src/fiche-service-public/components/Image.tsx index 8ea8b018a7..ab64d0660f 100644 --- a/packages/code-du-travail-frontend/src/fiche-service-public/components/Image.tsx +++ b/packages/code-du-travail-frontend/src/fiche-service-public/components/Image.tsx @@ -37,7 +37,7 @@ function ImageComponent({ data }: ImageProps) { return ( <> -
+
{legendText} {creditText && Crédits : {creditText}} -
+
{texteDeRemplacement && ( {texteDeRemplacement} @@ -57,6 +57,12 @@ function ImageComponent({ data }: ImageProps) { export const Image = memo(ImageComponent) as typeof ImageComponent; +const Figure = styled.figure` + img { + max-width: 100%; + } +`; + const Figcaption = styled.figcaption` display: flex; justify-content: flex-end;