Skip to content
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

fix: right sidebar behavior on desktop #7126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

whhuang
Copy link

@whhuang whhuang commented Apr 4, 2025

Using the default Sidebar component as described in this guide, i.e. npx shadcn@latest add sidebar.

When setting the Sidebar side to "right" on a desktop app, the window gap is still on the left side, resulting in bad UI behavior. This PR fixes that by putting the gap on the right side.

Before:
https://github.com/user-attachments/assets/6881ed5b-966b-4589-bd0f-718c1069e879

After:
https://github.com/user-attachments/assets/a8c994fe-c122-4126-96ad-c0792bd4973b

Copy link

vercel bot commented Apr 4, 2025

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

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant