Fix menu height when switching back from mobile layout

Fixes #2841
This commit is contained in:
Eric Lippmann 2017-07-28 13:44:21 +02:00
parent 2b3853d01c
commit fe12ed05e3
2 changed files with 4 additions and 7 deletions

View File

@ -67,9 +67,11 @@
} }
#sidebar { #sidebar {
top: 0; top: 0 !important;
height: 32px; height: 32px;
padding-bottom: 2.5em;
width: 100%; width: 100%;
z-index: 3;
} }
.dashboard > div.container { .dashboard > div.container {

View File

@ -600,12 +600,7 @@
) )
.prepend( .prepend(
$('<div id="mobile-menu-toggle"><button><i class="icon-menu"></i></button></div>') $('<div id="mobile-menu-toggle"><button><i class="icon-menu"></i></button></div>')
) );
.css({
paddingBottom: $('#mobile-menu-toggle').height(),
top: 0,
zIndex: 3
});
$search.on('keypress', this.closeMobileMenu); $search.on('keypress', this.closeMobileMenu);
this.mobileMenu = true; this.mobileMenu = true;