Skip to content

Commit 3701082

Browse files
Tidy up object fit
1 parent b3faec6 commit 3701082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/widgets/Image/image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const ImageComponent = (
8383
transform: `rotate(${rotation}deg) scaleX(${
8484
flipHorizontal ? -1 : 1
8585
}) scaleY(${flipVertical ? -1 : 1})`,
86-
objectFit: ratio ? "contain" : stretchToFit ? "fill" : "contain",
86+
objectFit: ratio || !stretchToFit ? "contain" : "fill",
8787
objectPosition: "top left"
8888
}}
8989
/>

0 commit comments

Comments
 (0)