Skip to content

fix(sidebar): add min-w-0 to SidebarInset to prevent horizontal scroll (#10549)#11146

Open
q121212 wants to merge 1 commit into
shadcn-ui:mainfrom
q121212:fix/sidebar-minwidth-overflow-10549
Open

fix(sidebar): add min-w-0 to SidebarInset to prevent horizontal scroll (#10549)#11146
q121212 wants to merge 1 commit into
shadcn-ui:mainfrom
q121212:fix/sidebar-minwidth-overflow-10549

Conversation

@q121212

@q121212 q121212 commented Jul 12, 2026

Copy link
Copy Markdown

Fixes #10549. Without min-w-0, SidebarInset refuses to shrink below widest child, causing horizontal scroll.

Without min-w-0, the flex child refuses to shrink below widest child
element (flex default min-width: auto), causing horizontal scroll (shadcn-ui#10549)
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

@q121212 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
Copy Markdown
Contributor

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.

[bug]: Sidebar + wide content (e.g. table) causes horizontal scroll on large screens

1 participant