Skip to content

Commit

Permalink
feat(@captn/joy): increase size of scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Jun 10, 2024
1 parent 90a85e2 commit 0e70ea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/joy/src/custom-scrollbars/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Scrollbars } from "react-custom-scrollbars";

const StyledScrollbars = styled(Scrollbars)({
overflow: "hidden",
"&::-webkit-scrollbar": {
"&::-webkit-scrollbar, ::-webkit-scrollbar": {
width: 0,
height: 0,
},
Expand Down Expand Up @@ -47,11 +47,11 @@ export const CustomScrollbars = forwardRef<
ref={ref}
autoHide
universal
thumbSize={10}
style={{ ...style }}
renderThumbVertical={properties => (
<Box
{...properties}
className="thumb-vertical"
sx={theme => ({
bgcolor: "text.secondary",
zIndex: theme.zIndex.badge + 1,
Expand Down
4 changes: 2 additions & 2 deletions packages/joy/src/styles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const globalStyles = (
body: { overflowX: "hidden" },
"#__next": { display: "contents" },
"::-webkit-scrollbar": {
width: 6,
height: 6,
width: 10,
height: 10,
},
"::-webkit-scrollbar-thumb": {
background: "var(--scrollbar-thumb-color)",
Expand Down

0 comments on commit 0e70ea2

Please sign in to comment.