From 4cc5a1282e2e2b2e745979423843e12b7edd2221 Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Thu, 26 Mar 2020 07:52:50 +0000 Subject: [PATCH] [FIX] website_forum: force image size in css to handle gifs Issue - Preferences > Change your avatar with a big .gif - Install Forum - Go on a question The gif is not resized in the nav and in the post answer box Cause In fact, all gifs are not really resized. They just look fine because there is CSS to handle the case where the server resize does not work. Solution Do as it is done everywhere else, add CSS rules OPW-2223260 closes odoo/odoo#48792 X-original-commit: 35137cea7fd0eef067749721ef808acd298e0aae Signed-off-by: Jason Van Malder (jvm) --- .../static/src/scss/website_forum.scss | 16 ++++++++++++++++ addons/website_forum/views/website_forum.xml | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/addons/website_forum/static/src/scss/website_forum.scss b/addons/website_forum/static/src/scss/website_forum.scss index a582d3f0a08..1ca07320d02 100644 --- a/addons/website_forum/static/src/scss/website_forum.scss +++ b/addons/website_forum/static/src/scss/website_forum.scss @@ -28,6 +28,10 @@ $bronze: #eea91e; background-color: rgba(theme-color('info'), 0.1); color: darken(theme-color('info'), 15%)!important; } + + img.o_forum_avatar { + @include size(30px); + } } // Single Post @@ -48,6 +52,12 @@ $bronze: #eea91e; border-left: .25em solid gray('500'); color: gray('600'); } + + #post_reply { + img.o_forum_avatar { + @include size(24px); + } + } } .o_wforum_readable { @@ -206,6 +216,12 @@ img.o_forum_avatar_big { object-fit: cover; } +.o_wprofile_email_validation_container { + img.o_forum_avatar { + @include size(16px); + } +} + .o_wforum_bio_popover_wrap { .o_wforum_bio_popover_name { address > div, span[data-oe-model="res.country"] { diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index ab687da717e..0912658105e 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -494,7 +494,7 @@ data-toggle="tooltip" data-trigger="hover" title="My profile"> - Avatar + Avatar
xp @@ -578,7 +578,7 @@
- Avatar + Avatar My Favourites I'm Following My Questions @@ -926,7 +926,7 @@