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:
Kia Lam 2019-01-28 13:25:44 -05:00
parent 155c214df0
commit c1b48e2c9c
No known key found for this signature in database
GPG Key ID: 294F9BE53C241D03
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'];