From 1b3b1ce89f13300f8d1f573fca569fbde99d45d4 Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Thu, 28 Oct 2021 06:54:20 +0000 Subject: [PATCH] [FIX] web: fixed word breaking in pie chart tooltip of graph view Currently, words are not breaking properly when reaching at the end of a line in the pie chart tooltip. It happens because of the 'word-break: break-all;' property used in the o_tooltip_legend class. and this property breaks the words at any character to prevent overflows. So this commit fixes the issue by removing the word-break property so that the CSS automatically applies the default line break rules. TaskID-2677129 closes odoo/odoo#80512 X-original-commit: 5dfd66f03e914fad58deeb45fcc31210293ae162 Signed-off-by: Lucas Perais (lpe) --- addons/web/static/src/legacy/scss/graph_view.scss | 1 - addons/web/static/src/views/graph/graph_view.scss | 1 - 2 files changed, 2 deletions(-) diff --git a/addons/web/static/src/legacy/scss/graph_view.scss b/addons/web/static/src/legacy/scss/graph_view.scss index 84f755e46d9..ce9f60b1e17 100644 --- a/addons/web/static/src/legacy/scss/graph_view.scss +++ b/addons/web/static/src/legacy/scss/graph_view.scss @@ -23,7 +23,6 @@ padding:10px; z-index: 2; pointer-events: none; - word-break: break-all; } div.o_graph_custom_tooltip { diff --git a/addons/web/static/src/views/graph/graph_view.scss b/addons/web/static/src/views/graph/graph_view.scss index 8e86df7e582..78dbf4e248a 100644 --- a/addons/web/static/src/views/graph/graph_view.scss +++ b/addons/web/static/src/views/graph/graph_view.scss @@ -24,7 +24,6 @@ padding: 10px; z-index: 2; pointer-events: none; - word-break: break-all; } div.o_graph_custom_tooltip {