Skip to content

Conversation

teejcoder
Copy link

Description

Fixes sidebar overflow issue when using variant="inset".

Closes #7947

Problem

The sidebar spacer element used h-svh which doesn't account for the SidebarProvider's p-2 padding (8px), causing 16px page overflow.

Solution

  • Changed to use h-full for inset variant to respect parent container padding
  • Applied fix to both default and new-york variants

Testing

  • Updated both variants in registry
  • Verified no page overflow on sidebar blocks
  • Registry rebuilt with pnpm build:registry

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Fixes shadcn-ui#7947

- Replace hardcoded h-svh with conditional h-full for inset variant
- Fixes 16px overflow caused by SidebarProvider padding not being respected
- Applied to both default and new-york variants
Copy link

vercel bot commented Aug 6, 2025

@teejcoder 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.

[bug]: Sidebar with variant="inset" causes 16px page overflow
1 participant