Skip to content

Commit

Permalink
[FIX] pos : product images look zoomed in
Browse files Browse the repository at this point in the history
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 #161111

X-original-commit: 0cc3a0e
Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com>
Signed-off-by: Loïc Leloup (lole) <lole@odoo.com>
  • Loading branch information
loleloup committed Apr 25, 2024
1 parent 4cc7fdd commit f0d0e9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.product-img img {
height: 100px;
object-fit: cover;
object-fit: contain;
}

.product-name {
Expand Down

0 comments on commit f0d0e9c

Please sign in to comment.