Merge branch 'icon-sidebar-expanded-margin' into 'master'
Fixes icon sidebar expanding causing a jump in padding Closes #36456 See merge request !13568
This commit is contained in:
commit
53edaa3111
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue