From 98e9a7c185e173954a9420703c8111c7be7a9902 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Fri, 24 Jan 2025 17:48:18 -0500 Subject: [PATCH] fix: remove w/h overrides on fernimage (#2075) --- packages/fern-docs/ui/src/components/FernImage.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/fern-docs/ui/src/components/FernImage.tsx b/packages/fern-docs/ui/src/components/FernImage.tsx index 52c71f8a75..431af1bbb6 100644 --- a/packages/fern-docs/ui/src/components/FernImage.tsx +++ b/packages/fern-docs/ui/src/components/FernImage.tsx @@ -67,8 +67,6 @@ export const FernImage = forwardRef< // which causes the image height to be ignored. we'll use the inline style prop to override this behavior: style={{ aspectRatio, - width: props.style?.width == null ? "100%" : "auto", - height: "auto", ...props.style, }} /> @@ -107,8 +105,6 @@ export const FernImage = forwardRef< // which causes the image height to be ignored. we'll use the inline style prop to override this behavior: style={{ aspectRatio, - width: props.style?.width == null ? "100%" : "auto", - height: "auto", ...props.style, }} />