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>
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
||||||
>(({ className, children, onScroll, ...props }, ref) => (
|
>(({ className, children, onScroll, ...props }, ref) => (
|
||||||
<ScrollAreaPrimitive.Root
|
<ScrollAreaPrimitive.Root
|
||||||
type="scroll"
|
type="auto"
|
||||||
className={twMerge('scroll-area__root', className)}
|
className={twMerge('scroll-area__root', className)}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -44,17 +44,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scroll-area__bar[data-orientation='vertical'] {
|
.scroll-area__bar[data-orientation='vertical'] {
|
||||||
width: 8px;
|
width: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-area__bar[data-orientation='horizontal'] {
|
.scroll-area__bar[data-orientation='horizontal'] {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 8px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 10px;
|
||||||
height: 6px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-track,
|
::-webkit-scrollbar-track,
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user