From 41cf683f3647354f4a52e83fa8f06ac77ae110dd Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Fri, 24 Jun 2022 12:51:42 +0000 Subject: [PATCH] [FIX] portal: allow words to be broken in portal messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce: - Create a sale order - Set a very long message in the chatter - Clink on the customer preview Current behavior: There is a empty space in the top right corner Expected behavior: The preview is a usual Explanation: The very long word in the chatter created at the bottom of the page a very long message that increased the page width, modifying the usual view. To fix that we allow long words to broken to keep the same width. opw-2880050 closes odoo/odoo#94802 X-original-commit: 775290e186f5dfdaae8a5b28e9ed20c6b307429e Signed-off-by: Sébastien Theys (seb) Signed-off-by: Fockedey Martin (mafo) --- addons/portal/static/src/scss/portal.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index e342118cb88..602085e92d3 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -469,6 +469,8 @@ form label { .o_portal_chatter_messages { margin-bottom: 15px; + overflow-wrap: break-word; + word-break: break-word; .o_portal_chatter_message { div.media-body > p:not(.o_portal_chatter_puslished_date):last-of-type {