Skip to content

refactor(web): shadcn sidebar fixes + mobile triggers#5

Open
emreycolakoglu wants to merge 1 commit into
mainfrom
refactor/shadcn-standardization
Open

refactor(web): shadcn sidebar fixes + mobile triggers#5
emreycolakoglu wants to merge 1 commit into
mainfrom
refactor/shadcn-standardization

Conversation

@emreycolakoglu

Copy link
Copy Markdown
Owner

What

Fixes the shadcn Sidebar integration and adds mobile sidebar triggers.

  • Sidebar width now actually applies (251px). The primitive used Tailwind v3 css-var syntax (w-[--sidebar-width]) while the project runs Tailwind v4.3.1, which compiles that to invalid CSS (width: --sidebar-width) — so the width dropped to auto, the layout-reserving gap div collapsed to zero, and the panel floated over the board content. Converted all occurrences to v4 syntax (w-(--sidebar-width)), matching the other v4 primitives, then set the width to 251px (250px content + 1px right border under box-border).
  • SidebarRail added to the layout (drag-to-toggle grab strip on the sidebar's right edge).
  • Mobile-only SidebarTrigger added before the back button in DetailBreadcrumbBar and before the title in BoardHeaderBar (md:hidden — the sidebar is docked at ≥md, off-canvas below).
  • Collapsed icons now center. Removed a stray justify-center on the menu-button variant that, combined with the still-in-flow (clipped) label span, dragged icons left of center; symmetric !p-2 padding centers them like upstream shadcn.

Testing

  • tsc --noEmit: no new errors (same 3 pre-existing).
  • Web tests pass, incl. detail-breadcrumb-bar.test.tsx (wrapped in SidebarProvider now that the bar depends on sidebar context) and sidebar-layout.test.tsx.

🤖 Generated with Claude Code

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