Skip to content

Commit 0036be4

Browse files
committed
fix: sidebar now overlays content instead of pushing it
Changed sidebar-gap to use 'hidden' instead of 'w-0' in offcanvas mode, completely removing it from layout flow so the sidebar truly overlays.
1 parent 8dc094c commit 0036be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/ui/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function Sidebar({
219219
data-slot="sidebar-gap"
220220
className={cn(
221221
'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',
222-
'group-data-[collapsible=offcanvas]:w-0',
222+
'group-data-[collapsible=offcanvas]:hidden',
223223
'group-data-[side=right]:rotate-180',
224224
variant === 'floating' || variant === 'inset'
225225
? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'

0 commit comments

Comments
 (0)