Skip to content

Commit b6c8b88

Browse files
permanent scroll bar
1 parent ff7fa7d commit b6c8b88

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

index.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,32 @@ body {
8181
white; z-index: 10;
8282
}
8383
#controls-box{
84-
overflow: auto;
84+
overflow-y: auto;
8585
flex: 0 0 auto;
86-
max-height: 50svh;
86+
max-height: 60svh;
87+
-webkit-overflow-scrolling: touch;
88+
scrollbar-width: auto;
89+
-ms-overflow-style: scrollbar;
90+
}
91+
92+
#controls-box::-webkit-scrollbar {
93+
-webkit-appearance: none;
94+
width: 12px;
95+
}
96+
97+
#controls-box::-webkit-scrollbar-track {
98+
background: #f1f1f1;
99+
border-radius: 8px;
100+
}
101+
102+
#controls-box::-webkit-scrollbar-thumb {
103+
background: #888;
104+
border-radius: 8px;
105+
border: 2px solid #f1f1f1;
106+
}
107+
108+
#controls-box::-webkit-scrollbar-thumb:hover {
109+
background: #555;
87110
}
88111
.controls-container {
89112
display: flex;

0 commit comments

Comments
 (0)