Skip to content

The open-source app everyone uses to manage agents at work

Fix org chart canvas height to fit viewport without scrolling

Dotta41e03bae61d1
diff --git a/ui/src/pages/OrgChart.tsx b/ui/src/pages/OrgChart.tsx
index 981545c040..7eb0f0d9f6 100644
--- a/ui/src/pages/OrgChart.tsx
+++ b/ui/src/pages/OrgChart.tsx
@@ -269,7 +269,7 @@ export function OrgChart() {
return (
<div
ref={containerRef}
- className="w-full h-[calc(100vh-4rem)] overflow-hidden relative bg-muted/20 border border-border rounded-lg"
+ className="w-full h-[calc(100dvh-6rem)] overflow-hidden relative bg-muted/20 border border-border rounded-lg"
style={{ cursor: dragging ? "grabbing" : "grab" }}
onMouseDown={handleMouseDown}
onMouseMove={handleMouseMove}