odoo/odoo#187398

Created by fw-bot
Merged at 36c0715de8a2ee736e8042ebb06c294f99879039

Statuses:

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.

opw-4029017

Forward-Port-Of: #187297