You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ScrollArea component in the shadcn/ui library contains a div element with the style min-width:100%;display:table. This div cannot be modified without directly altering the files in the node_modules directory. As a result, the element takes up the entire width and overflows the screen.
Affected component/components
ScrollArea
How to reproduce
Steps to reproduce the behavior:
Import and use the ScrollArea component from shadcn/ui in a project.
Observe that there is a div with style="min-width:100%;display:table" within the component structure.
Notice that this div causes the component to take up the entire width of the screen and overflow.
This is an issue with the underlying radix-ui's component ScrollArea.
See the issue in radix-ui: radix-ui/primitives#926 (comment)
There's also a suggested workaround there.
Describe the bug
The ScrollArea component in the shadcn/ui library contains a div element with the style min-width:100%;display:table. This div cannot be modified without directly altering the files in the node_modules directory. As a result, the element takes up the entire width and overflows the screen.
Affected component/components
ScrollArea
How to reproduce
Steps to reproduce the behavior:
Import and use the ScrollArea component from shadcn/ui in a project.
Observe that there is a div with style="min-width:100%;display:table" within the component structure.
Notice that this div causes the component to take up the entire width of the screen and overflow.
page.tsx
good-morning.tsx
Codesandbox/StackBlitz link
https://github.com/leon3108/spotiflex
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: