Skip to content

Commit b1d07a8

Browse files
committed
follow up to 4bab8b8 to avoid the max-height if there's no sticky
1 parent bcc1f84 commit b1d07a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

assets/scss/_sidebar.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@
7676
margin-left: -15px;
7777

7878
@include media-breakpoint-up(md) {
79-
max-height: calc(100vh - 9rem);
80-
overflow-y: auto;
79+
@supports (position: sticky) {
80+
max-height: calc(100vh - 9rem);
81+
overflow-y: auto;
82+
}
8183
}
8284

8385
// Override collapse behaviors

0 commit comments

Comments
 (0)