mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Use prop for scrollbar width
This commit is contained in:
@@ -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 New Issue
Block a user