From dfbe78e9e00798ec017ee0906c01dd200a3ada09 Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Thu, 2 Nov 2023 11:04:38 +0100 Subject: [PATCH] [FIX] website_forum: fix avatar renderer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit allows avatar that would not be squared to be rendered with a correct aspect ratio inside Forum. Before these changes, if the user avatar was not uploaded in a squared size, it would be stretched while being rendered inside the forum UI. To solve this issue, we simply add the `o_object_fit_cover` class to these avatars, ensuring they are well rendered. We also changed the resolution to 128x128, to provide a better render. task-3580131 closes odoo/odoo#140660 Signed-off-by: Stéphane Debauche (std) --- addons/website_forum/views/forum_forum_templates_layout.xml | 2 +- addons/website_forum/views/forum_forum_templates_tools.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website_forum/views/forum_forum_templates_layout.xml b/addons/website_forum/views/forum_forum_templates_layout.xml index 5e86735afc5..90007c88984 100644 --- a/addons/website_forum/views/forum_forum_templates_layout.xml +++ b/addons/website_forum/views/forum_forum_templates_layout.xml @@ -273,7 +273,7 @@ - Avatar + Avatar