From 8ba5e135efa1ac09fc51c30966da81dbe503198a Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Thu, 9 Apr 2020 08:42:42 +0000 Subject: [PATCH] [FIX] sale: fix SO preview word break Issue - Install eCommerce - Create a SO - Add a section - Add a note with big text - Customer Preview The word are not broken correctly Cause We added a break-all to prevent long URL/words overflow. Solution Use work-break: break-word which will break the word correctly. Use overflow-wrap/word-wrap (same usage but we need both to ensure browsers compatibility) which makes sure the long string will wrap and not bust out of the container OPW-2222814 closes odoo/odoo#49321 X-original-commit: 0754590abe1b84874aa2a685fea5cbf2569383e4 Signed-off-by: Jason Van Malder (jvm) --- addons/sale/static/src/scss/sale_portal.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/sale/static/src/scss/sale_portal.scss b/addons/sale/static/src/scss/sale_portal.scss index df849cb9e4f..0a967dd9e0b 100644 --- a/addons/sale/static/src/scss/sale_portal.scss +++ b/addons/sale/static/src/scss/sale_portal.scss @@ -12,7 +12,9 @@ /* ---- Order page ---- */ .sale_tbody .o_line_note { - word-break: break-all; + word-break: break-word; + word-wrap: break-word; + overflow-wrap: break-word; } .o_portal .sale_tbody .js_quantity_container {