odoo/odoo#200486

Created by fw-bot
Merged at 6e9ba677a15d18f49122da5d3cdd57759ffca9c5

Statuses:

label
odoo-dev:master-18.0-portal-chatter-avatar-object-fit-cover-aku-420773-fw
head
aeec9306122b54149a580f14fb8fec48810002b7
merged
8 months ago by Discuss, Alexandre Kühn (aku)
odoo/odoo
18.0 #200241
saas-18.1 #200463
saas-18.2 #200482
saas-18.3
saas-18.4
19.0
master #200486

[FW][FIX] portal: correct avatar ratio in portal chatter

Before this commit, some messages in portal chatter may have avatar squished vertically or horizontally when the source image of avatar is not a square.

This happens because avatar are cropped to fit cover with .o_object_fit_cover, in order to give the right visual when the avatar doesn't fit in a square. The classname was present but the SCSS file defining this rule was missing from the "portal.assets_chatter_style" bundle, which this commit fixes.

Before
Screenshot 2025-03-04 at 18 32 58
After
Screenshot 2025-03-04 at 18 33 22

Forward-Port-Of: #200241