Closed adnasa closed 8 years ago
@andalusi I reverted your fix (https://github.com/sphereio/commercetools-sunrise-design/commit/249a59f24852f4e2adea29a2db96de0851a39cff) because it caused this. Any idea how to solve it?
@lauraluiz Unfortunately, it won't fix the issue when change the height value from auto
to 100%
because small images will stretch.
I would temporary recommend to hide the loading animation and only use images with the correct aspect ratio.
@andalusi okay for the temporary solution, but what would be the long-term solution that you suggest?
@lauraluiz Using the right aspect ratio
@andalusi do you mean for the product thumbnails or for the home page banners?
@lauraluiz
For both! But I know its not always possible.
So we can use two different mixins, one for home banners (height: auto
) and one for product thumbnails (height: 100%
)
Not sure if this is a kind of a hack ...
;)
@andalusi as long as it works, it is okay :) We definitely cannot guarantee what kind of images people will provide with their products, that must be completely flexible. But we can be a bit more strict with the home banners, if needed.
Fixed: Product thumbnails with landscape pictures #358
Solved :+1:
Is this meant to be?