Skip to content

Commit cd2c17e

Browse files
rikJosep Martins
andauthored
Make the sidebar scrollable above 768px (#305)
Co-authored-by: Josep Martins <[email protected]>
1 parent 74925e6 commit cd2c17e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<aside class="sidebar position-md-sticky px-4 col-lg-3 py-4 py-md-1 mb-4 mb-md-0 pb-1 bg-gray">
1+
<aside class="sidebar position-md-sticky overflow-y-auto px-4 col-lg-3 py-4 py-md-1 mb-4 mb-md-0 pb-1 bg-gray">
22
<label class="d-flex mr-4 flex-items-center">
3-
<span class="mr-4">Version</span>
3+
<span class="mr-4">Version</span>
44
<select class="flex-1" onchange="window.location.href = this.value">
55
<option value="{{ site.baseurl }}/guide/introduction" {% if page.version == 1 %} selected{% endif %}>v1.x.x</option>
66
<option value="{{ site.baseurl }}/guide-v2/introduction" {% if page.version == 2 %} selected{% endif %}>v2.x.x</option>

docs/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ a {
8484
min-width: var(--logo-width);
8585
}
8686

87-
@media only screen and (max-device-width : 768px) {
87+
@media only screen and (max-width : 768px) {
8888
.main-header {
8989
height: auto;
9090
background: none;

0 commit comments

Comments
 (0)