Skip to content

Commit

Permalink
feat: Set the global scroll bar style #2247 (#2265)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

feat: Set the global scroll bar style #2247
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
  • Loading branch information
cike8899 authored Sep 5, 2024
1 parent 04de0c4 commit 445576e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 22 additions & 0 deletions web/src/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@ body {
.ant-app {
height: 100%;
}

/* Scroll bar stylings */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
background: rgb(219, 218, 218);
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #aaaaaa;
border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #888;
}
2 changes: 0 additions & 2 deletions web/src/pages/search/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
inset-inline-start: 0;
top: 0;
bottom: 0;
scrollbar-width: thin;
scrollbar-color: unset;

.checkGroup {
width: 100%;
Expand Down

0 comments on commit 445576e

Please sign in to comment.