feat: make scroll area type auto for make default visible scrollbar (#3220)

This commit is contained in:
Faisal Amir 2024-08-02 10:59:33 +07:00 committed by Louis
parent fd830b9ced
commit 52d90ee52d
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ const ScrollArea = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
>(({ className, children, onScroll, ...props }, ref) => (
<ScrollAreaPrimitive.Root
type="scroll"
type="auto"
className={twMerge('scroll-area__root', className)}
{...props}
>

View File

@ -44,17 +44,17 @@
}
.scroll-area__bar[data-orientation='vertical'] {
width: 8px;
width: 10px;
}
.scroll-area__bar[data-orientation='horizontal'] {
flex-direction: column;
height: 8px;
height: 10px;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {