Skip to content

Commit eef1166

Browse files
author
Andrey Okonetchnikov
committed
fix: Use object-fit: contain for the Figure component
1 parent 67cf855 commit eef1166

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Figure.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Figure({ src, alt, caption, ...props }) {
2424
justifyContent: "center",
2525
}}
2626
>
27-
<Image src={src} alt={alt} sx={{ objectFit: "scale-down" }} />
27+
<Image src={src} alt={alt} sx={{ objectFit: "contain" }} />
2828
</Flex>
2929
{caption && (
3030
<Text as="figcaption" variant="styles.figcaption" sx={{ mt: 4 }}>

0 commit comments

Comments
 (0)