diff --git a/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.html b/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.html index c32beb331c..41d5a17ae5 100644 --- a/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.html +++ b/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.html @@ -7,7 +7,7 @@ (backdropClicked)="_backdropClicked()">
- +
diff --git a/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.scss b/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.scss index ee764707f9..4cccdb81ac 100644 --- a/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.scss +++ b/libs/design/src/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.scss @@ -18,7 +18,6 @@ &__content { flex: 0 1 auto; width: 100%; - will-change: transform; z-index: variables.$daff-sidebar-content-z-index; overflow-y: auto; height: 100%; @@ -28,6 +27,23 @@ flex-shrink: 0; } + &__nav { + position: fixed; + top: 0; + width: 100%; + z-index: variables.$daff-sidebar-content-z-index; + + &:empty { + display: none; + } + + &:not(:empty) { + + #{$root}__inner { + margin-top: var(--daff-sidebar-side-fixed-top-shift); + } + } + } + &__backdrop { height: 100%; position: absolute;