Skip to content

Commit 06b4842

Browse files
fix: dag height (#622)
1 parent 6ba0a57 commit 06b4842

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/app/runs/[id]/page.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
import Expand from "@/assets/icons/expand.svg?react";
2+
import { useServerInfo } from "@/data/server/info-query";
3+
import { checkIsLocalServer } from "@/lib/server";
14
import { Button } from "@zenml-io/react-component-library";
5+
import { Dispatch, SetStateAction, useState } from "react";
26
import { DAG } from "./Dag";
37
import { RunsDetailHeader } from "./Header";
4-
import { Dispatch, SetStateAction, useState } from "react";
58
import { RunsDetailTabs, TabsHeader } from "./_Tabs";
6-
import Expand from "@/assets/icons/expand.svg?react";
79

810
export default function RunDetailPage() {
11+
const serverInfo = useServerInfo();
12+
const isLocal = checkIsLocalServer(serverInfo.data?.deployment_type || "other");
913
const [isPanelOpen, setIsPanelOpen] = useState(true);
1014
return (
1115
<div>
1216
<RunsDetailHeader />
13-
<div className="flex h-[calc(100vh_-_4rem_-_4rem_-_2px)] w-full">
17+
<div
18+
className={`flex ${isLocal ? "h-[calc(100vh_-_4rem_-_4rem_-_4rem_-_2px)]" : "h-[calc(100vh_-_4rem_-_4rem_-_2px)]"} w-full`}
19+
>
1420
<div
1521
className={`relative bg-white/40 transition-all duration-500 ${
1622
isPanelOpen ? "w-1/2" : "w-full"

0 commit comments

Comments
 (0)