Skip to content

Conversation

@edouard-andrei
Copy link

@edouard-andrei edouard-andrei commented Oct 17, 2025

Summary

Fixed overflow issue in SidebarSeparator component by updating the width class to use
data-[orientation=horizontal]:w-auto instead of w-auto. This makes the width override
more specific, only applying to horizontal separators, which prevents conflicts with other
Separator styling.

Fixes #1486

Changes

  • Updated SidebarSeparator.vue in all styles (default, new-york, new-york-v4)
  • Changed w-auto to data-[orientation=horizontal]:w-auto to prevent overflow issues
  • Rebuilt the registry to include the component changes

Related

This fix is related to shadcn-ui/ui#8498 which addresses the same
issue in the main shadcn-ui/ui library.

Test plan

  • Built the registry successfully
  • Verified changes in all three style variants
  • Follows conventional commit guidelines

…ientation

Updated SidebarSeparator component to use
`data-[orientation=horizontal]:w-auto` instead of `w-auto` to prevent
overflow issues caused by underlying Separator classes.

The change makes the width override more specific, only applying to
horizontal separators, which prevents conflicts with other Separator
styling.
@edouard-andrei
Copy link
Author

@zernonia solved merge conflicts for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shadcn-ui Changes depends on original repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(sidebar): SidebarSeparator causes overflow with horizontal orientation

2 participants