Skip to content

Commit

Permalink
fixup! refactor(NcAppNavigation): do not rely on $app-navigation-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ShGKme committed Jul 24, 2024
1 parent 38a9884 commit 840c422
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ export default {
inherits: true;
}
.content {
:root {
/**
* The padding between the toggle button and the page border
*/
Expand All @@ -1266,12 +1266,12 @@ export default {
}
// 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) {
:root:has(.app-sidebar.slide-right-enter-active),
:root:has(.app-sidebar.slide-right-leave-active) {
transition: --app-sidebar-offset var(--animation-quick);
}
.content:has(.app-sidebar__toggle) {
:root:has(.app-sidebar__toggle) {
--app-sidebar-offset: calc(var(--app-sidebar-padding) + var(--default-clickable-area));
}
</style>
Expand Down

0 comments on commit 840c422

Please sign in to comment.