mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
ux: hide sidemenu in kiosk mode, and while playlist is playing, fixes #107402
This commit is contained in:
parent
a906dd8157
commit
40c9d5f2a3
@ -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;
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user