From 8a2921399e4f963c0f64c6cb2c96e543b43412cf Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 24 Oct 2018 12:26:21 +0300 Subject: [PATCH] graph panel: fix legend alignment --- public/sass/components/_panel_graph.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/sass/components/_panel_graph.scss b/public/sass/components/_panel_graph.scss index e9e0c756f46..96f01581724 100644 --- a/public/sass/components/_panel_graph.scss +++ b/public/sass/components/_panel_graph.scss @@ -14,7 +14,7 @@ .graph-legend-series { display: block; - padding-left: 0px; + padding-left: 4px; } .graph-legend-table .graph-legend-series { @@ -70,8 +70,8 @@ .graph-legend-icon, .graph-legend-alias, .graph-legend-value { + display: inline; cursor: pointer; - float: left; white-space: nowrap; font-size: 85%; text-align: left; @@ -108,6 +108,11 @@ } } +// Don't move series to the right if legend is on the right as well +.graph-panel--legend-right .graph-legend-series--right-y { + float: left; +} + .graph-legend-value { padding-left: 6px; }