Skip to content

Commit

Permalink
Fix chevron left/right on sidebar collapsed
Browse files Browse the repository at this point in the history
Avoid wrong chevron position when the sidebar is collapsed and the user
reload the page. Avoid clickable overflow on nav toggle button.
  • Loading branch information
mfrecchiami authored and kennyadsl committed Oct 30, 2019
1 parent 719b33c commit 65a017d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Spree.ready(function() {
});
}

if (document.body.classList.contains('admin-nav-hidden')) {
$(adminNavToggle).removeClass('fa-chevron-circle-left').addClass('fa-chevron-circle-right');
}

function toggleTooltips() {
$(".tab-with-icon .text:visible").each(function() {
$(this.closest(".tab-with-icon")).attr("data-original-title", "").tooltip();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $padding-y-navbar-submenu: 9px;
color: $color-navbar;
font-weight: $font-weight-bold;
position: relative;
overflow: hidden;
display: block;
height: 39px;
z-index: 1;
Expand Down Expand Up @@ -58,7 +59,7 @@ $padding-y-navbar-submenu: 9px;
}

.admin-login-nav a {
text-overflow:clip;
text-overflow: clip;
}

.brand-link {
Expand Down Expand Up @@ -258,7 +259,7 @@ nav.menu {
&:before {
z-index: 1;
top: 1.5em;
pointer-events:none;
pointer-events: none;
}

&:after {
Expand All @@ -272,7 +273,7 @@ nav.menu {
left: -2.1em;
top: 1.5em;
margin-top: -1em;
pointer-events:none;
pointer-events: none;
}

> li {
Expand Down

0 comments on commit 65a017d

Please sign in to comment.