diff --git a/dashboard/index.html b/dashboard/index.html
index c672b9673..a1cd77198 100644
--- a/dashboard/index.html
+++ b/dashboard/index.html
@@ -133,7 +133,7 @@
-
diff --git a/dashboard/public/js/index.js b/dashboard/public/js/index.js
index a9d6b5e99..1c1c8a06f 100644
--- a/dashboard/public/js/index.js
+++ b/dashboard/public/js/index.js
@@ -670,11 +670,16 @@ app.controller('MainController', ['$scope', '$route', '$timeout', '$location', '
$scope.notificationCount = 0;
$scope.hideNavBarActions = $location.path() === '/logs';
$scope.backgroundImageUrl = '';
+ $scope.sideBarClosed = false;
$scope.closeNavbar = function () {
$('.navbar-collapse').collapse('hide');
};
+ $scope.onSidebarToggle = function () {
+ $scope.sideBarClosed = !$scope.sideBarClosed;
+ };
+
$scope.reboot = {
busy: false,
diff --git a/dashboard/src/theme.scss b/dashboard/src/theme.scss
index 8bc10b4cd..38fd52e40 100644
--- a/dashboard/src/theme.scss
+++ b/dashboard/src/theme.scss
@@ -379,8 +379,18 @@ html, body {
color: black;
}
+.nav-sidebar-toggle-button {
+ position: absolute;
+ right: 0;
+ top: 50%;
+ width: 20px;
+}
+
.nav-sidebar {
- min-width: 250px;
+ position: relative;
+ transition: all 200ms ease;
+ width: 250px;
+ white-space: nowrap !important;
overflow: hidden;
display: flex;
flex-direction: column;
@@ -390,6 +400,10 @@ html, body {
border-right: 1px solid var(--pankow-color-background-hover);
}
+.nav-sidebar.closed {
+ width: 0;
+}
+
.nav-sidebar-logo img {
margin-right: 10px;
}