From 28afbaf502db88204bacbb6be96c490ce777208b Mon Sep 17 00:00:00 2001
From: "Andrea Grazioso (agr-odoo)" <agr@odoo.com>
Date: Wed, 6 Nov 2019 13:34:16 +0000
Subject: [PATCH] [FIX] sale: wrap long line in sale portal

From Sale create a new (or edit) SO. Add a note to the order with a log
line without dash or whitespace (i.e. a url). Click on "Preview".

The sale portal will try to display the long line which will overflow
the standard size of the column creating an ugly overflow with a very
long horizontal scrollbar.

Adding a "break-all" rule to fix the sale portal case.

opw-2088589

closes odoo/odoo#39878

Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
---
 addons/sale/static/src/scss/sale_portal.scss | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/addons/sale/static/src/scss/sale_portal.scss b/addons/sale/static/src/scss/sale_portal.scss
index dd3528e3628d..5bf4aefcb51b 100644
--- a/addons/sale/static/src/scss/sale_portal.scss
+++ b/addons/sale/static/src/scss/sale_portal.scss
@@ -8,3 +8,9 @@
 .orders_label_text_align {
     vertical-align: 15%;
 }
+
+/* ---- Order page ---- */
+
+.sale_tbody .o_line_note {
+    word-break: break-all;
+}
-- 
GitLab