Skip to content

Conversation

@edouard-andrei
Copy link

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

Description

This PR fixes an overflow issue in the SidebarSeparator component by making the width override more specific to horizontal orientations.

Changes

Updated the SidebarSeparator component in the v4 registry to use data-[orientation=horizontal]:w-auto instead of w-auto. This prevents overflow issues caused by the underlying Separator classes.

Files Changed

  • apps/v4/registry/new-york-v4/ui/sidebar.tsx

Why

The previous implementation used w-auto which applied to all separator orientations. This could cause overflow issues when the Separator component's base classes conflicted with the sidebar styling. By using data-[orientation=horizontal]:w-auto, we ensure the override only applies when needed.

Testing

  • Registry has been rebuilt with pnpm build:registry
  • All changes formatted with prettier
  • Visual inspection of sidebar separators in both horizontal and vertical orientations

Note

This change is applied only to apps/v4 as apps/www is deprecated.

@vercel
Copy link

vercel bot commented Oct 17, 2025

@edouard-andrei is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

Looks like this PR modifies files in apps/www, which is deprecated.

Consider applying the change to apps/v4 if relevant.

…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.

This change is applied to apps/v4 (apps/www is deprecated).
@edouard-andrei
Copy link
Author

Closing to create a fresh PR without the deprecated label since we've already removed the apps/www changes.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant