From 5e1cb4b498e9e842710bb1e16fc6f426cb0ba54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 21 Jan 2021 15:23:12 +0000 Subject: [PATCH] [FIX] mail: reduce spacing between messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-2444878 closes odoo/odoo#64892 X-original-commit: cf03fbd51df53c128f98e1f9ad208628a7b52963 Signed-off-by: Sébastien Theys (seb) --- .../src/components/message/message.scss | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index 37c9f7eab5b..4f3c6dce294 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -44,17 +44,12 @@ .o_Message_content { word-wrap: break-word; word-break: break-word; - // Message content can contain arbitrary HTML that might overflow and break - // the style without this rule. - overflow: auto; - > pre { - white-space: pre-wrap; - word-break: break-word; - } - - > p:last-of-type { - margin-bottom: 0; + * { + // Message content can contain arbitrary HTML that might overflow and break + // the style without this rule. + max-width: 100%; + overflow: auto; } img { @@ -132,6 +127,14 @@ justify-content: center; } +.o_Message_prettyBody { + + > p:last-of-type { + margin-bottom: 0; + } + +} + .o_Message_readMoreLess { display: block; }