Skip to content

Commit be79e7e

Browse files
committed
fix: change objectFit style from 'cover' to 'contain' in ImageWithSkeleton component
1 parent 74d7831 commit be79e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/ImageWithSkeleton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ImageWithSkeleton: FC<ImageWithSkeletonProps> = ({
2222
onLoad={() => setImageLoaded(true)}
2323
className={className ?? ''}
2424
style={{
25-
maxHeight: height, width, display: isImageLoaded ? 'block' : 'none', objectFit: 'cover',
25+
maxHeight: height, width, display: isImageLoaded ? 'block' : 'none', objectFit: 'contain',
2626
}}
2727
/>
2828
{!isImageLoaded && <Skeleton width={width} height={height} />}

0 commit comments

Comments
 (0)