Skip to content

Commit 6508cb4

Browse files
committed
fix(ui): use full viewport height for layout containers
- Update App.tsx to set `h-[calc(100vh)]` instead of `h-[calc(100vh-2rem)]` - Update Sidebar component to set `min-h-[calc(100vh)]` instead of `min-h-[calc(100vh-2rem)]` - Ensures consistent full-height layout across platforms
1 parent 183bfcd commit 6508cb4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,7 @@ function RootLayout() {
315315
<div
316316
className={cn(
317317
"w-full",
318-
__WEB__ || platform() !== "windows"
319-
? "h-full"
320-
: "h-[calc(100vh-2rem)]"
318+
__WEB__ || platform() !== "windows" ? "h-full" : "h-[calc(100vh)]"
321319
)}
322320
>
323321
<RootLayoutContent />

frontend/src/components/ui/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function SidebarProvider({
174174
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex w-full",
175175
__WEB__ || platform() !== "windows"
176176
? "min-h-full"
177-
: "min-h-[calc(100vh-2rem)]",
177+
: "min-h-[calc(100vh)]",
178178
className
179179
)}
180180
{...props}

0 commit comments

Comments
 (0)