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
40c9d5f2
Commit
40c9d5f2
authored
Feb 04, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: hide sidemenu in kiosk mode, and while playlist is playing, fixes #107402
parent
a906dd81
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
public/app/core/components/grafana_app.ts
+4
-0
public/app/core/directives/dash_class.js
+0
-4
public/sass/components/_view_states.scss
+6
-1
No files found.
public/app/core/components/grafana_app.ts
View file @
40c9d5f2
...
...
@@ -83,6 +83,10 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
body
.
toggleClass
(
'sidemenu-hidden'
);
});
scope
.
$watch
(()
=>
playlistSrv
.
isPlaying
,
function
(
newValue
)
{
elem
.
toggleClass
(
'playlist-active'
,
newValue
===
true
);
});
// tooltip removal fix
// manage page classes
var
pageClass
;
...
...
public/app/core/directives/dash_class.js
View file @
40c9d5f2
...
...
@@ -18,10 +18,6 @@ function (_, $, coreModule) {
elem
.
toggleClass
(
'panel-in-fullscreen'
,
false
);
});
$scope
.
$watch
(
'ctrl.playlistSrv.isPlaying'
,
function
(
newValue
)
{
elem
.
toggleClass
(
'playlist-active'
,
newValue
===
true
);
});
$scope
.
$watch
(
'ctrl.dashboardViewState.state.editview'
,
function
(
newValue
)
{
if
(
newValue
)
{
elem
.
toggleClass
(
'dashboard-page--settings-opening'
,
_
.
isString
(
newValue
));
...
...
public/sass/components/_view_states.scss
View file @
40c9d5f2
.page-kiosk-mode
{
dashnav
{
.sidemenu
,
.navbar
{
display
:
none
;
}
}
...
...
@@ -31,6 +32,10 @@
}
}
.sidemenu
{
display
:
none
;
}
.gf-timepicker-nav-btn
{
transform
:
translate3d
(
40px
,
0
,
0
);
}
...
...
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