Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): use dvh instead of vh for mobile viewport (#20)

Generc0550f6b1490
diff --git a/src/web/src/app/(app)/workspaces/client.tsx b/src/web/src/app/(app)/workspaces/client.tsx
index 6e3bc9bfa..669343504 100644
--- a/src/web/src/app/(app)/workspaces/client.tsx
+++ b/src/web/src/app/(app)/workspaces/client.tsx
@@ -65,7 +65,7 @@ export function WorkspaceListClient({
}
return (
- <div className="relative flex min-h-screen flex-col items-center justify-center p-6">
+ <div className="relative flex min-h-dvh flex-col items-center justify-center p-6">
<GradientBackground />
<div className="w-full max-w-md space-y-8">
diff --git a/src/web/src/components/workspace-shell.tsx b/src/web/src/components/workspace-shell.tsx
index 44245ac6f..c0aa796cf 100644
--- a/src/web/src/components/workspace-shell.tsx
+++ b/src/web/src/components/workspace-shell.tsx
@@ -22,7 +22,7 @@ export function WorkspaceShell({ children }: { children: ReactNode }) {
if (isMobile) {
return (
<SidebarTriggerContext.Provider value={() => setSidebarOpen(true)}>
- <div className="flex flex-col h-screen overflow-hidden relative">
+ <div className="flex flex-col h-dvh overflow-hidden relative">
<GradientBackground />
<div className="flex-1 min-h-0 px-2 pb-2 pt-2">
<main className="h-full rounded-xl bg-card/80 backdrop-blur-xl shadow-lg ring-1 ring-border/40 overflow-hidden flex flex-col">
@@ -40,7 +40,7 @@ export function WorkspaceShell({ children }: { children: ReactNode }) {
}
return (
- <div className="flex h-screen overflow-hidden relative">
+ <div className="flex h-dvh overflow-hidden relative">
<GradientBackground />
<AppSidebar />
<div className="flex-1 min-w-0 p-2 pl-0">