Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] pos : product images look zoomed in #163725

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 29, 2024

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

saas-16.3:
image

saas-16.4:
image

fixed locally (16.4):
image

Forward-Port-Of: #161111
Forward-Port-Of: #161038

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

X-original-commit: f0d0e9c
@robodoo
Copy link
Contributor

robodoo commented Apr 29, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 29, 2024

@loleloup @vlst-odoo this PR targets master and is the last of the forward-port chain containing:

To merge the full chain, use

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@loleloup
Copy link
Contributor

@fw-bot r+

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 29, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 29, 2024
@loleloup
Copy link
Contributor

@fw-bot r+

robodoo pushed a commit that referenced this pull request Apr 30, 2024
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>
@robodoo robodoo closed this Apr 30, 2024
@robodoo robodoo added the 17.3 label Apr 30, 2024
@fw-bot fw-bot deleted the master-saas-16.4-pos_fix_product_image_fit-lole-_oZs-fw branch May 14, 2024 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants