From 6328d4307be21df2b89d79c16e397af04f1c3074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Tue, 26 Jan 2021 15:07:17 +0000 Subject: [PATCH] [FIX] mail: show bullet style of li in message content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-2447922 closes odoo/odoo#65126 X-original-commit: efafef714ad2836f6c1072d3ac1aa43097fc97fa Signed-off-by: Sébastien Theys (seb) Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/components/message/message.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index 4f3c6dce294..5c4416eb99f 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -45,11 +45,15 @@ word-wrap: break-word; word-break: break-word; - * { + *:not(li):not(li div) { // Message content can contain arbitrary HTML that might overflow and break // the style without this rule. + // Lists are ignored because otherwise bullet style become hidden from overflow. + // It's acceptable not to manage overflow of these tags for the moment. + // It also excludes all div in li because 1st leaf and div child of list overflow + // may impact the bullet point (at least it does on Safari). max-width: 100%; - overflow: auto; + overflow-x: auto; } img {