-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[bug]: vertical separator not rendering #4818
Comments
Opened a PR to help fix this! |
In my case, I had to define the height explicitly in the className prop. Then, it was displayed. |
Yes explicitly setting a height does work but the default behavior of the component should be that it fills up the height of the parent which isn't happening. Can always override that with the className prop even with this change |
Yes, agree. |
it has an easy fix, on the primitive root change:
setting min-h-full should fix this this issue when set to vertical |
Yes that is the fix I used and it's what I have in the PR I opened for this |
Describe the bug
When using the separator with a "vertical" orientation it does not render properly. Looking at the browser dev tools it appears to have a size of 1x0 pixels.
Changing the default style here to use
min-h-full
instead of justh-full
seems to fix this.Seems to be the same as this issue encountered in the shadcn-svelte port
Affected component/components
Separator
How to reproduce
Codesandbox/StackBlitz link
https://stackblitz.com/edit/stackblitz-starters-t7h9sc?file=components%2Fui%2Fseparator.tsx
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: