Commit 4d22a65e by Tom Christie

Fix sidebar styling when browser window is too small

parent af2fdc03
......@@ -303,3 +303,7 @@ table {
border-color: white;
margin-bottom: 0.6em;
}
.side-nav {
overflow-y: scroll;
}
......@@ -198,5 +198,14 @@
$('.dropdown-menu').on('click touchstart', function(event) {
event.stopPropagation();
});
// Dynamically force sidenav to no higher than browser window
$('.side-nav').css('max-height', window.innerHeight - 125);
$(function(){
$(window).resize(function(){
$('.side-nav').css('max-height', window.innerHeight - 125);
});
});
</script>
</body></html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment