File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ import Expand from "@/assets/icons/expand.svg?react" ;
2+ import { useServerInfo } from "@/data/server/info-query" ;
3+ import { checkIsLocalServer } from "@/lib/server" ;
14import { Button } from "@zenml-io/react-component-library" ;
5+ import { Dispatch , SetStateAction , useState } from "react" ;
26import { DAG } from "./Dag" ;
37import { RunsDetailHeader } from "./Header" ;
4- import { Dispatch , SetStateAction , useState } from "react" ;
58import { RunsDetailTabs , TabsHeader } from "./_Tabs" ;
6- import Expand from "@/assets/icons/expand.svg?react" ;
79
810export 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"
You can’t perform that action at this time.
0 commit comments