mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 06:55:07 +08:00
docs: improve scrollbar on windows
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user