Merge pull request #3087 from kialam/fix-3082-sidenav-on-resize

Some sidebar nav fixes.

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-01-30 17:40:46 +00:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,7 @@
width: @main-menu-width;
margin: @main-menu-margin;
flex: initial;
pointer-events: none;
}
}

View File

@@ -44,6 +44,14 @@ function AtSideNavController ($scope, $window) {
vm.isExpanded = false;
}
});
$(window).resize(() => {
if ($window.innerWidth <= breakpoint) {
vm.isExpanded = false;
} else {
vm.isExpanded = true;
}
});
}
AtSideNavController.$inject = ['$scope', '$window'];