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
d3d64337
Commit
d3d64337
authored
Apr 06, 2018
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrollbar: styles cleanup
parent
9f07ae72
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
public/app/core/components/scroll/scroll.ts
+0
-1
public/app/features/panel/panel_directive.ts
+2
-0
public/app/plugins/panel/graph/legend.ts
+2
-3
public/sass/components/_panel_graph.scss
+4
-1
public/sass/components/_scrollbar.scss
+2
-7
No files found.
public/app/core/components/scroll/scroll.ts
View file @
d3d64337
...
...
@@ -77,7 +77,6 @@ export function geminiScrollbar() {
});
scope
.
$on
(
'$destroy'
,
()
=>
{
// scrollbar.destroy();
scrollbar
.
dispose
();
});
},
...
...
public/app/features/panel/panel_directive.ts
View file @
d3d64337
...
...
@@ -125,6 +125,8 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) {
barOnCls
:
'_scrollbar'
,
scrollingCls
:
'_scrolling'
,
});
panelScrollbar
.
scroll
();
}
});
...
...
public/app/plugins/panel/graph/legend.ts
View file @
d3d64337
...
...
@@ -18,9 +18,7 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
const
legendRightDefaultWidth
=
10
;
scope
.
$on
(
'$destroy'
,
function
()
{
if
(
legendScrollbar
)
{
legendScrollbar
.
dispose
();
}
destroyScrollbar
();
});
ctrl
.
events
.
on
(
'render-legend'
,
()
=>
{
...
...
@@ -288,6 +286,7 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
destroyScrollbar
();
legendScrollbar
=
baron
(
scrollbarParams
);
}
legendScrollbar
.
scroll
();
}
function
destroyScrollbar
()
{
...
...
public/sass/components/_panel_graph.scss
View file @
d3d64337
...
...
@@ -58,7 +58,7 @@
position
:
relative
;
// fix for Firefox (white stripe on the right of scrollbar)
width
:
99%
;
width
:
calc
(
100%
-
1px
)
;
.popover-content
{
padding
:
0
;
...
...
@@ -67,6 +67,9 @@
.graph-legend-content
{
position
:
relative
;
// fix for Firefox (white stripe on the right of scrollbar)
width
:
calc
(
100%
-
1px
);
}
.graph-legend-scroll
{
...
...
public/sass/components/_scrollbar.scss
View file @
d3d64337
...
...
@@ -189,10 +189,6 @@
.baron
{
display
:
inline-block
;
overflow
:
hidden
;
// Width needs to be set to prevent content width issues
// Set to 99% instead of 100% for fixing Firefox issue (white stripe on the right of scrollbar)
width
:
99%
;
}
// Fix for side menu on mobile devices
...
...
@@ -203,7 +199,6 @@
.baron__clipper
{
position
:
relative
;
overflow
:
hidden
;
height
:
100%
;
}
.baron__scroller
{
...
...
@@ -289,8 +284,8 @@
.baron.panel-content--scrollable
{
// Width needs to be set to prevent content width issues
// Set to
99% instead of
100% for fixing Firefox issue (white stripe on the right of scrollbar)
width
:
99%
;
// Set to
less than
100% for fixing Firefox issue (white stripe on the right of scrollbar)
width
:
calc
(
100%
-
2px
)
;
.baron__scroller
{
padding-top
:
1px
;
...
...
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