Skip to content

Commit

Permalink
Merge pull request #6154 from nextcloud-libraries/backport/5720/next
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Oct 21, 2024
2 parents 18fa1e1 + c6c903d commit aca481d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1229,8 +1229,15 @@ export default {
--app-sidebar-padding: #{$app-navigation-padding};
// A padding between the toggle button and the page border
--app-sidebar-offset: 0;
transition-duration: var(--animation-quick);
transition-property: --app-sidebar-offset;
// Explicitly disable transition by default to enable it only when sidebar animation is active
// !important to override styles from an older version, because it's global non-scoped styles
transition: --app-sidebar-offset 0ms !important;
}
// When AppSidebar is animation is active - also apply transition for the toggle button offset
.content:has(.app-sidebar.slide-right-enter-active),
.content:has(.app-sidebar.slide-right-leave-active) {
transition: --app-sidebar-offset var(--animation-quick);
}
.content:has(.app-sidebar__toggle) {
Expand Down

0 comments on commit aca481d

Please sign in to comment.