Skip to content

Commit 207088a

Browse files
committed
make sidebar scrollable if content overflows
1 parent b5f121f commit 207088a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/templates/with-zls-docs.shtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070

7171
#sidebar-content {
7272
position: sticky;
73-
top: 80px;
73+
top: 40px;
74+
max-height: calc(100vh - 40px);
75+
overflow-y: auto;
7476
}
7577

7678
#footer {

0 commit comments

Comments
 (0)