Merge pull request #238 from crashbell/master

Add document width check to deal with GitLab CSS media query
This commit is contained in:
Buu Nguyen 2016-01-16 09:17:58 -08:00
commit 74e75cd391
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class GitLab extends Adapter {
// @override
updateLayout(togglerVisible, sidebarVisible, sidebarWidth) {
const isNewDesign = $('.navbar-gitlab.header-collapsed, .navbar-gitlab.header-expanded').length > 0
const glSidebarExpanded = $('.page-with-sidebar').hasClass('page-sidebar-expanded')
const glSidebarExpanded = $('.page-with-sidebar').hasClass('page-sidebar-expanded') && $(document).width() > 1199
if (isNewDesign) {
const glSidebarWidth = glSidebarExpanded ? 230 : 62