Use prop for scrollbar width
This commit is contained in:
parent
dc1e728a2e
commit
0a9dcf36b9
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ const StyledScrollArea = styled(MantineScrollArea)`
|
|||
}
|
||||
|
||||
& .mantine-ScrollArea-scrollbar {
|
||||
width: 12px;
|
||||
padding: 0;
|
||||
background: var(--scrollbar-track-bg);
|
||||
}
|
||||
|
@ -22,7 +21,7 @@ const StyledScrollArea = styled(MantineScrollArea)`
|
|||
export const ScrollArea = ({ children, ...props }: ScrollAreaProps) => {
|
||||
return (
|
||||
<StyledScrollArea
|
||||
offsetScrollbars
|
||||
scrollbarSize={12}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
|
|
Reference in a new issue