-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Horizontal Scrollbar Thumb Grow #1276
Comments
Hi @rizaldywirawan I'm trying to replicate the problem because I cannot see the problem. EDIT
|
@SoyDiego Thank you so much for your help. |
Hi again @rizaldywirawan, I did a PR applying your solution and works ok. Thanks! |
Holla folks,
Seems like the horizontal scrollbar thumb has a bug caused by the
flex-1
on theScrollAreaPrimitive.ScrollAreaThumb
.Actually this
flex-1
is used by the vertical scrollbar.Horizontal.Scrollbar.Bug.mp4
How to fix:
The quick fix here is make a condition where only add the
flex-1
for the vertical scrollbar only. For example:<ScrollAreaPrimitive.ScrollAreaThumb className={cn("h-full bg-primary-100 border border-primary-500 relative rounded-full", orientation === "vertical" && 'flex-1')} />
The text was updated successfully, but these errors were encountered: