Skip to content

Commit c68f94e

Browse files
author
globbertot
committed
Improvement: Always show scrollbar only when maximized
1 parent 0b11fff commit c68f94e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ui/scss/component/_navigation.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
.navigation {
4343
position: fixed;
4444
left: 0;
45-
overflow-y: scroll;
45+
overflow-y: auto;
4646
overflow-x: hidden;
4747
top: var(--header-height);
4848
width: var(--side-nav-width);
@@ -73,6 +73,15 @@
7373
color: var(--color-odysee-contrast) !important;
7474
}
7575

76+
@media (min-width: $breakpoint-medium) {
77+
overflow-y: hidden;
78+
justify-content: space-between;
79+
80+
&:hover {
81+
overflow-y: scroll;
82+
}
83+
}
84+
7685
@media (max-width: $breakpoint-medium) {
7786
width: calc(var(--side-nav-width) + 6px);
7887
}
@@ -107,6 +116,10 @@
107116

108117
.navigation--push {
109118
transform: translateX(0);
119+
120+
&:not(.navigation--micro) {
121+
overflow-y: scroll;
122+
}
110123
}
111124

112125
.navigation--mac {

0 commit comments

Comments
 (0)