Skip to content

Commit

Permalink
fix: objectfit prop (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 authored Mar 17, 2024
2 parents d241e4d + e009a57 commit 402b6e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/component/base/Img.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Img = forwardRef<HTMLImageElement, ImgProps>(
<Image
ref={ref}
{...rest}
objectFit={objectFit ?? style?.objectFit}
style={{ objectFit, ...style }}
width={width ?? w}
height={height ?? h}
Expand Down

0 comments on commit 402b6e6

Please sign in to comment.