Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 9baf875

Browse files
committed
perf:Optimize the scroll bar, compatible with different platforms
1 parent 9da67a1 commit 9baf875

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/styles/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ body {
1818
min-width: 100%;
1919
}
2020

21+
::-webkit-scrollbar{
22+
width: 5px;
23+
height: 5px;
24+
}
25+
::-webkit-scrollbar-thumb{
26+
border-radius: 1em;
27+
background-color: rgba(50,50,50,.3);
28+
}
29+
::-webkit-scrollbar-track{
30+
border-radius: 1em;
31+
background-color: rgba(50,50,50,.1);
32+
}

0 commit comments

Comments
 (0)