BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
53edaa31
Commit
53edaa31
authored
Aug 16, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'icon-sidebar-expanded-margin' into 'master'
Fixes icon sidebar expanding causing a jump in padding Closes #36456 See merge request !13568
parents
9a9d70be
b6811c06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
new_sidebar.js
app/assets/javascripts/new_sidebar.js
+4
-2
No files found.
app/assets/javascripts/new_sidebar.js
View file @
53edaa31
...
...
@@ -43,10 +43,12 @@ export default class NewNavSidebar {
}
toggleCollapsedSidebar
(
collapsed
)
{
this
.
$sidebar
.
toggleClass
(
'sidebar-icons-only'
,
collapsed
);
const
breakpoint
=
bp
.
getBreakpointSize
();
if
(
this
.
$sidebar
.
length
)
{
this
.
$sidebar
.
toggleClass
(
'sidebar-icons-only'
,
collapsed
);
this
.
$page
.
toggleClass
(
'page-with-new-sidebar'
,
!
collapsed
);
this
.
$page
.
toggleClass
(
'page-with-icon-sidebar'
,
collapsed
);
this
.
$page
.
toggleClass
(
'page-with-icon-sidebar'
,
breakpoint
===
'sm'
?
true
:
collapsed
);
}
NewNavSidebar
.
setCollapsedCookie
(
collapsed
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment