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:
@@ -268,7 +268,7 @@ export function OrgChart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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">
|
<div className="mb-2 flex items-center justify-start gap-2 shrink-0">
|
||||||
<Link to="/company/import">
|
<Link to="/company/import">
|
||||||
<Button variant="outline" size="sm">
|
<Button variant="outline" size="sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user