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

[FIX] web_editor: fix user avatar aspect-ratio #162743

Closed

Conversation

chgo-odoo
Copy link
Contributor

@chgo-odoo chgo-odoo commented Apr 20, 2024

task-3877841


This PR fixes an issue occurring in the web_editor when multiple users edit some content.

Prior to this commit, the user avatar was not using any aspect-ratio rule, resulting in a stretch avatar if the uploaded image wasn't square.

This commit fixes this issue by adding the o_object_fit_cover class to the image, ensuring a correct ratio no matter the format of the uploaded image.

16.0 16.0-fix-editor-avatar-ratio-chgo
image image

This commit fixes an issue occurring in the `web_editor` when multiple
users edit some content.

Prior to this commit, the user avatar was not using any aspect-ratio
rule, resulting in a stretch avatar if the uploaded image wasn't square.

This commit fixes this issue by adding the `o_object_fit_cover` class to
the image, ensuring a correct ratio no matter the format of the uploaded
image.

task-3877841
@robodoo
Copy link
Contributor

robodoo commented Apr 20, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label Apr 20, 2024
@chgo-odoo chgo-odoo marked this pull request as ready for review April 22, 2024 07:03
@C3POdoo C3POdoo requested a review from a team April 22, 2024 07:05
@chgo-odoo
Copy link
Contributor Author

Hello @odoo/rd-framework-editor, another single line PR, ready for review 😶‍🌫️

Could you have a look?

Thanks

@dmo-odoo
Copy link
Contributor

Thanks for the fix!

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 22, 2024
This commit fixes an issue occurring in the `web_editor` when multiple
users edit some content.

Prior to this commit, the user avatar was not using any aspect-ratio
rule, resulting in a stretch avatar if the uploaded image wasn't square.

This commit fixes this issue by adding the `o_object_fit_cover` class to
the image, ensuring a correct ratio no matter the format of the uploaded
image.

task-3877841

closes #162743

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
This commit fixes an issue occurring in the `web_editor` when multiple
users edit some content.

Prior to this commit, the user avatar was not using any aspect-ratio
rule, resulting in a stretch avatar if the uploaded image wasn't square.

This commit fixes this issue by adding the `o_object_fit_cover` class to
the image, ensuring a correct ratio no matter the format of the uploaded
image.

task-3877841

closes #162743

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@robodoo robodoo closed this Apr 22, 2024
MohammedBasioni pushed a commit to odoo-dev/odoo that referenced this pull request Apr 29, 2024
This commit fixes an issue occurring in the `web_editor` when multiple
users edit some content.

Prior to this commit, the user avatar was not using any aspect-ratio
rule, resulting in a stretch avatar if the uploaded image wasn't square.

This commit fixes this issue by adding the `o_object_fit_cover` class to
the image, ensuring a correct ratio no matter the format of the uploaded
image.

task-3877841

closes odoo#162743

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants