Fix org chart canvas overflowing viewport by using h-full instead of calc

The previous h-[calc(100dvh-6rem)] underestimated the vertical overhead
(breadcrumb, padding, worktree banner, button bar). Using h-full lets the
flex layout propagate the correct available height from <main>.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta
2026-03-18 15:29:19 -05:00
parent cd01ebb417
commit ef60ea0446

View File

@@ -268,7 +268,7 @@ export function OrgChart() {
}
return (
<div className="flex flex-col h-[calc(100dvh-6rem)]">
<div className="flex flex-col h-full">
<div className="mb-2 flex items-center justify-start gap-2 shrink-0">
<Link to="/company/import">
<Button variant="outline" size="sm">