Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4aad4a06
Commit
4aad4a06
authored
Dec 08, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: graph legend refactoring
parent
8415ea6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
public/app/plugins/panel/graph/legend.ts
+1
-1
public/sass/components/_panel_graph.scss
+3
-11
No files found.
public/app/plugins/panel/graph/legend.ts
View file @
4aad4a06
...
...
@@ -220,7 +220,6 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
elem
.
append
(
tbodyElem
);
}
else
{
elem
.
append
(
seriesElements
);
}
if
(
!
legendScrollbar
)
{
legendScrollbar
=
new
PerfectScrollbar
(
elem
[
0
]);
...
...
@@ -229,5 +228,6 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
}
}
}
}
};
});
public/sass/components/_panel_graph.scss
View file @
4aad4a06
...
...
@@ -6,17 +6,9 @@
&
--legend-right
{
flex-direction
:
row
;
// .graph-panel__chart {
// display: table-cell;
// width: 100%;
// position: relative;
// }
.graph-legend
{
flex
:
0
1
10px
;
max-height
:
100%
;
position
:
relative
;
left
:
4px
;
margin
:
0
0
0
1rem
;
}
.graph-legend-series
{
...
...
@@ -51,12 +43,10 @@
}
.graph-legend
{
@include
clearfix
();
flex
:
0
1
auto
;
max-height
:
30%
;
margin
:
0
$spacer
;
text-align
:
center
;
width
:
calc
(
100%
-
$spacer
);
padding-top
:
6px
;
position
:
relative
;
...
...
@@ -121,7 +111,9 @@
display
:
block
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
height
:
100%
;
padding-bottom
:
1px
;
padding-right
:
5px
;
}
.graph-legend-series
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment