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 #163725

X-original-commit: f0d0e9c
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 30, 2024
1 parent eb00051 commit df53af9
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 df53af9

Please sign in to comment.