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 {
|
& .mantine-ScrollArea-scrollbar {
|
||||||
width: 12px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: var(--scrollbar-track-bg);
|
background: var(--scrollbar-track-bg);
|
||||||
}
|
}
|
||||||
|
@ -22,7 +21,7 @@ const StyledScrollArea = styled(MantineScrollArea)`
|
||||||
export const ScrollArea = ({ children, ...props }: ScrollAreaProps) => {
|
export const ScrollArea = ({ children, ...props }: ScrollAreaProps) => {
|
||||||
return (
|
return (
|
||||||
<StyledScrollArea
|
<StyledScrollArea
|
||||||
offsetScrollbars
|
scrollbarSize={12}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|
Reference in a new issue