Skip to content

Commit

Permalink
fix: remove w/h overrides on fernimage (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Jan 24, 2025
1 parent f997bee commit 98e9a7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/fern-docs/ui/src/components/FernImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
/>
Expand Down Expand Up @@ -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,
}}
/>
Expand Down

0 comments on commit 98e9a7c

Please sign in to comment.