-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Sidebar width display abnormal
Affected component/components
sidebar
How to reproduce
When I use the command pnpm dlx shadcn@latest add sidebar to download the component, the Sidebar component image in sidebar.tsx is as shown below

The css variable was not found.
Finally found globals.css generated is
.w-[--sidebar-width] {
width: --sidebar-width;
}
Codesandbox/StackBlitz link
No response
Logs
System Info
139.0.7258.139
Before submitting
- I've searched for existing issues
- I've made research efforts and searched the documentation
lbartroli
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working