mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Some sidebar nav fixes.
- Set isExpanded state to false when window width is < 700px. - Set `pointer-events` to `none` for logo to allow users to easily click on hamburger icon.
This commit is contained in:
parent
155c214df0
commit
c1b48e2c9c
@ -49,6 +49,7 @@
|
||||
width: @main-menu-width;
|
||||
margin: @main-menu-margin;
|
||||
flex: initial;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user