[FIX] pos : product images look zoomed in

The cover scss rule first stretches the image to fill the container completely,
then cropped at the size of the container.

This results in some poor display result if the image has a weird aspect ratio.

This is a behaviour change from saas-16.3 where the image wasn't cropped and
simply resized to fit inside the container.

opw-3826349

closes odoo/odoo#161111

X-original-commit: 0cc3a0edfcd68ebbd7930eedd2af82bd3b3a29fe
Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com>
Signed-off-by: Loïc Leloup (lole) <lole@odoo.com>
This commit is contained in:
Leloup Loïc (lole)
2024-04-25 13:22:53 +00:00
parent 4cc7fddc5b
commit f0d0e9cbca
@@ -4,7 +4,7 @@
.product-img img {
height: 100px;
object-fit: cover;
object-fit: contain;
}
.product-name {