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

pull/10756/head
Torkel Ödegaard 7 years ago
parent a906dd8157
commit 40c9d5f2a3
  1. 4
      public/app/core/components/grafana_app.ts
  2. 4
      public/app/core/directives/dash_class.js
  3. 7
      public/sass/components/_view_states.scss

@ -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…
Cancel
Save