From b5bc4dd46a3fe4a574217a452df918e86ab3eda1 Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Thu, 19 Sep 2019 15:22:39 +0000 Subject: [PATCH] [IMP] mail: wrong image size on mail preview on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the displayed images with 'o_mail_preview_image' class were not correctly displayed (some icon were distorted). Note that this is a minor issue that was already present on older versions. closes odoo/odoo#37161 Signed-off-by: Adrien Dieudonné (adr) --- addons/mail/static/src/scss/discuss.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/scss/discuss.scss b/addons/mail/static/src/scss/discuss.scss index d7a01bdf26f..4a35ef55ade 100644 --- a/addons/mail/static/src/scss/discuss.scss +++ b/addons/mail/static/src/scss/discuss.scss @@ -356,11 +356,13 @@ border-bottom: 1px solid gray('400'); } .o_mail_preview_image { + display: flex; + align-items: center; flex: 0 0 auto; position: relative; > img { - width: 100%; - height: 100%; + max-width: 100%; + max-height: 100%; border-radius: 50%; object-fit: cover; }