Skip to content

Commit 3440e34

Browse files
committed
fix: use variable for inset layout height calculation
1 parent cf7c963 commit 3440e34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/layout/authenticated-layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export function AuthenticatedLayout({ children }: Props) {
5151

5252
// If layout is fixed and sidebar is inset,
5353
// set the height to 100svh - 1rem (total margins) to prevent overflow
54-
'peer-data-[variant=inset]:has-[[data-layout=fixed]]:h-[calc(100svh-1rem)]'
54+
// 'peer-data-[variant=inset]:has-[[data-layout=fixed]]:h-[calc(100svh-1rem)]',
55+
'peer-data-[variant=inset]:has-[[data-layout=fixed]]:h-[calc(100svh-(var(--spacing)*4))]'
5556
)}
5657
>
5758
{children ?? <Outlet />}

0 commit comments

Comments
 (0)