ux: hide sidemenu in kiosk mode, and while playlist is playing, fixes #107402

This commit is contained in:
Torkel Ödegaard 2018-02-04 17:32:27 +01:00
parent a906dd8157
commit 40c9d5f2a3
3 changed files with 10 additions and 5 deletions

View File

@ -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;

View File

@ -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));

View File

@ -1,5 +1,6 @@
.page-kiosk-mode {
dashnav {
.sidemenu,
.navbar {
display: none;
}
}
@ -31,6 +32,10 @@
}
}
.sidemenu {
display: none;
}
.gf-timepicker-nav-btn {
transform: translate3d(40px, 0, 0);
}