From a24cd324c0a275d87bb62c2b220ad43bc67c9d78 Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Fri, 20 Nov 2020 10:07:21 +0000 Subject: [PATCH] [FIX] mail: fix image width inside the chatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Web editor hard code the width inside the image html. This `max-width` constraint the image inside the chatter and avoid unwanted horizontal scrollbar. task-2389432 closes odoo/odoo#62095 X-original-commit: 352e868f320344b06c4d44fd2df452080446dbb6 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/components/message/message.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index 8fe3d7a2219..c131fe24aba 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -56,6 +56,11 @@ > p:last-of-type { margin-bottom: 0; } + + img { + max-width: 100%; + height: auto; + } } .o_Message_core {