Skip to content

Commit 01753ee

Browse files
committed
set the h style prop to override the height chakra prop
1 parent 3b86567 commit 01753ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MarkdownImage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const MarkdownImage = ({
3737
}
3838

3939
const fileExt = extname(transformedSrc).toLowerCase()
40-
const isAnimated = [".gif", ".apng", ".webp"].includes(fileExt)
40+
const isAnimated = [".gif", ".apng", ".webp"].includes(fileExt)
4141

4242
return (
4343
// display the wrapper as a `span` to avoid dom nesting warnings as mdx
@@ -51,6 +51,7 @@ const MarkdownImage = ({
5151
loading="lazy"
5252
src={transformedSrc}
5353
unoptimized={isAnimated}
54+
h="auto"
5455
{...rest}
5556
/>
5657
</Link>

0 commit comments

Comments
 (0)