mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02: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:
@@ -49,6 +49,7 @@
|
|||||||
width: @main-menu-width;
|
width: @main-menu-width;
|
||||||
margin: @main-menu-margin;
|
margin: @main-menu-margin;
|
||||||
flex: initial;
|
flex: initial;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,14 @@ function AtSideNavController ($scope, $window) {
|
|||||||
vm.isExpanded = false;
|
vm.isExpanded = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(window).resize(() => {
|
||||||
|
if ($window.innerWidth <= breakpoint) {
|
||||||
|
vm.isExpanded = false;
|
||||||
|
} else {
|
||||||
|
vm.isExpanded = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
AtSideNavController.$inject = ['$scope', '$window'];
|
AtSideNavController.$inject = ['$scope', '$window'];
|
||||||
|
|||||||
Reference in New Issue
Block a user