odoo/odoo#187398
Created by fw-bot
Merged
at 36c0715de8a2ee736e8042ebb06c294f99879039
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-17.2-17.0-fix-sol-shift-in-cart-loti-WyO9-fw
- head
- a493d4107e5e51e27cdfd84aa5d340d44ae6f11c
- merged
- 6 months ago by Sales, Louis Tinel (loti)
odoo/odoo | |
---|---|
17.0 | #187297 |
saas-17.2 | #187398 |
saas-17.4 | #187422 |
18.0 | #187447 |
saas-18.1 | |
saas-18.2 | |
saas-18.3 | |
master | #187660 |
[FW][FIX] website_sale: fix layout shift in cart
Product images are lazy-loaded on the cart page, causing them to be displayed later than the rest of the page. As a result, some parts of the page were shifted once the image was loaded (since the image had no size before loading).
This change wraps the image in a fixed-size container to avoid the layout shift.
Incidentally, this change also fixes some alignment issues when the cart contains images with various aspect ratios.
Forward-Port-Of: #187297