Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 5, 2025

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

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.

X-original-commit: 43c9b7f
@robodoo
Copy link
Contributor

robodoo commented Mar 5, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 5, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 5, 2025

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

To merge the full chain, use

@robodoo r+

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

@alexkuhn
Copy link
Contributor

alexkuhn commented Mar 5, 2025

@robodoo r+

@C3POdoo C3POdoo added the RD research & development, internal work label Mar 5, 2025
robodoo pushed a commit that referenced this pull request Mar 6, 2025
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.

closes #200486

X-original-commit: 43c9b7f
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
@robodoo robodoo added the 18.3 label Mar 6, 2025
@robodoo robodoo closed this Mar 6, 2025
@alexkuhn alexkuhn deleted the master-18.0-portal-chatter-avatar-object-fit-cover-aku-420773-fw branch March 6, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

18.3 forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants