Skip to content

Commit

Permalink
Merge pull request #5389 from RayBB/fix-sidebar-jank
Browse files Browse the repository at this point in the history
fix(NcAppSidebar): animation glitch on toggle
  • Loading branch information
susnux committed Mar 20, 2024
2 parents 70c958c + 85f19d5 commit a228c45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ export default {
transition: transform var(--animation-quick), margin var(--animation-quick);
width: $navigation-width;
// Left toggle button padding + toggle button + right padding from NcAppContent
max-width: calc(100vw - (var(--app-navigation-padding) + var(--default-clickable-area) + var(--default-grid-baseline)));
--app-navigation-max-width: calc(100vw - (var(--app-navigation-padding) + var(--default-clickable-area) + var(--default-grid-baseline)));
max-width: var(--app-navigation-max-width);
position: relative;
top: 0;
left: 0;
Expand All @@ -252,13 +253,12 @@ export default {
user-select: none;
flex-grow: 0;
flex-shrink: 0;
background-color: var(--color-main-background-blur, var(--color-main-background));
background-color: var(--color-main-background-blur, var(--color-main-background));
-webkit-backdrop-filter: var(--filter-background-blur, none);
backdrop-filter: var(--filter-background-blur, none);
&--close {
transform: translateX(-100%);
position: absolute;
margin-left: calc(-1 * min($navigation-width, var(--app-navigation-max-width)));
}
// For legacy purposes support passing a bare list to the content in #default slot and including #footer slot
Expand Down Expand Up @@ -303,7 +303,7 @@ export default {
// When on mobile, we make the navigation slide over the appcontent
@media only screen and (max-width: $breakpoint-mobile) {
.app-navigation:not(.app-navigation--close) {
.app-navigation {
position: absolute;
}
}
Expand Down

0 comments on commit a228c45

Please sign in to comment.