Skip to content

Commit 9907b4e

Browse files
committed
fix: hide sidebar on mobile devices for better responsiveness
1 parent 624890c commit 9907b4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/app-react-crud/src/components/ui/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const Sidebar = React.forwardRef<
215215
<div
216216
ref={ref}
217217
className={cn(
218-
"bg-sidebar text-sidebar-foreground flex h-svh w-[--sidebar-width] shrink-0 flex-col border-r transition-[width] duration-200 ease-linear",
218+
"bg-sidebar text-sidebar-foreground hidden md:flex h-svh w-[--sidebar-width] shrink-0 flex-col border-r transition-[width] duration-200 ease-linear",
219219
state === "collapsed" && collapsible === "offcanvas" && "w-0 overflow-hidden border-0",
220220
state === "collapsed" && collapsible === "icon" && "w-[--sidebar-width-icon]",
221221
className

0 commit comments

Comments
 (0)