feat: make scroll area type auto for make default visible scrollbar (#3220)
This commit is contained in:
parent
ec9b5bf682
commit
13428d60e7
@ -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}
|
||||
>
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user