Closed Leeingnyo closed 3 years ago
Describe the bug
Here is an image (1500(W) x 1103(H)) at a screen (260(W) x 240(H))
Both the image and the screen has bigger width than height but the ratio of the image is bigger than the screen
The ratio of the image: 1500 / 1103 ~= 1.36 The ratio of the screen: 260 / 240 ~= 1.08
This makes the bug. the opposite situation (bigger height) would happen, too.
Expected behavior
After adding 100% max-width, 100% max-height and object-fit: contain property. this bug would be resolved.
object-fit: contain
Hi there! The issue has been fixed in v0.23.0. Thanks for the bug report!
Describe the bug
Here is an image (1500(W) x 1103(H)) at a screen (260(W) x 240(H))
Both the image and the screen has bigger width than height but the ratio of the image is bigger than the screen
The ratio of the image: 1500 / 1103 ~= 1.36 The ratio of the screen: 260 / 240 ~= 1.08
This makes the bug. the opposite situation (bigger height) would happen, too.
Expected behavior
After adding 100% max-width, 100% max-height and
object-fit: contain
property. this bug would be resolved.