summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-03-26 07:52:50 +0000
committerjvm-odoo <jvm@odoo.com>2020-04-01 20:42:06 +0000
commit4cc5a1282e2e2b2e745979423843e12b7edd2221 (patch)
treeac3041e2344967862959ae8f2429858ec77b744d /addons/website_forum/static/src
parent6576aedc0db8fcab52fa929e82c5ad98d0bd1c10 (diff)
[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) <jvm@odoo.com>
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/scss/website_forum.scss16
1 files changed, 16 insertions, 0 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"] {