Sidebar vertical scrolling is disabled in collapsed state
To Reproduce
- Open the Dokploy dashboard.
- Reduce your browser window height or ensure you have enough items in the sidebar to require scrolling.
- Collapse the sidebar by clicking the sidebar toggle icon (icon state).
- Attempt to scroll vertically to see the bottom menu items.
- Notice that vertical scrolling is completely disabled.
Current vs. Expected behavior
Current behavior:
In version v0.29.10, when the sidebar is toggled into its collapsed (icon) state, vertical scrolling is completely disabled (due to overflow-hidden). Furthermore, in v0.29.8, it was possible to scroll the sidebar horizontally if the inner container was wider than the main container, which was an unintended visual glitch.
Expected behavior: The sidebar should allow vertical scrolling when collapsed so all menu items are accessible, while simultaneously hiding any horizontal overflow.
Provide environment information
- Dokploy Version: v0.29.10
- Browser: Chrome, Safari, Brave
Which area(s) are affected? (Select all that apply)
Dokploy UI
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
This issue was introduced in PR #4706 (Feat/tailwind v4 shadcn update) in commit 3ca5afd49.
In apps/dokploy/components/ui/sidebar.tsx, the SidebarContent component was updated to include the class group-data-[collapsible=icon]:overflow-hidden. This class hides both vertical and horizontal overflow when the sidebar is collapsed, breaking the vertical scroll.
Suggested Fix:
In apps/dokploy/components/ui/sidebar.tsx around line 371:
// Change this:
className={cn(
"no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
className,
)}
// To this:
className={cn(
"no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden",
className,
)}
Will you send a PR to fix it?
Yes