summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/graph_view.scss
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2018-12-24 13:37:59 +0000
committerMathieu Duckerts-Antoine <dam@odoo.com>2019-02-21 13:03:22 +0000
commitbb6aec1ac35fca2e7cb17ff1f194895fdd8021db (patch)
treeabed5a473726c44ad7205f673b5ed7dce2dd6530 /addons/web/static/src/scss/graph_view.scss
parent4b652ebe8afe05ffdce709c5e85180a1f47d68c1 (diff)
[FIX] web: several columns in line chart tooltips for large data
Currently tooltip goes out off the screen when the graph view (in line mode) presents a large number of groups. The present commit splits the tooltip content in three columns when the number of groups exceeds 20. This split is not done in mobile mode because it is not an appropriate in that situation. Co-authored-by: Mohammed Shekha <msh@openerp.com> Related to Task: 1917958 closes odoo/odoo#30288
Diffstat (limited to 'addons/web/static/src/scss/graph_view.scss')
-rw-r--r--addons/web/static/src/scss/graph_view.scss21
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/graph_view.scss b/addons/web/static/src/scss/graph_view.scss
index f78df83cc83..7e7852a4d7f 100644
--- a/addons/web/static/src/scss/graph_view.scss
+++ b/addons/web/static/src/scss/graph_view.scss
@@ -33,6 +33,27 @@
}
}
}
+
+ /* Use less than 50% of the screen area for tooltip and show legends in 3 column of 33% each */
+ &.o_tooltip_split_in_columns .nvtooltip {
+ max-width: 48%;
+ tbody {
+ display: flex;
+ flex-flow: wrap;
+ tr {
+ width: 33%;
+ td {
+ display: inline-block;
+ &.key {
+ min-width: 160px;
+ max-width: 70%;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ }
+ }
+ }
+ }
+ }
}
}
}