docs: improve scrollbar on windows

This commit is contained in:
unix
2020-03-22 07:20:49 +08:00
parent a45c6fff12
commit 7d975783ce
2 changed files with 59 additions and 39 deletions

View File

@@ -51,6 +51,16 @@ export const Sidebar: React.FC<SideGroupProps> = React.memo(({ sides }) => {
overflow-x: hidden;
height: calc(100vh - 140px);
}
.box::-webkit-scrollbar {
width: 5px;
background-color: ${theme.palette.accents_1};
}
.box::-webkit-scrollbar-thumb {
background-color: ${theme.palette.accents_2};
border-radius: ${theme.layout.radius};
}
.box>:global(.item) {
margin-bottom: 10px;