diff --git a/frontend/src/components/graph/BaseNode.tsx b/frontend/src/components/graph/BaseNode.tsx index 50cb588..46a908e 100644 --- a/frontend/src/components/graph/BaseNode.tsx +++ b/frontend/src/components/graph/BaseNode.tsx @@ -1,6 +1,8 @@ import type { ComponentProps, ReactNode } from "react"; import { NodeResizer } from "@xyflow/react"; +import { useContext } from "react"; +import FlowContext from "@/lib/graph/flowContext"; import { useConnectionPathRole } from "@/lib/graph/flowContext"; import { cn } from "@/lib/utils"; @@ -35,6 +37,8 @@ export function BaseNode({ resizeConstraints, ...props }: BaseNodeProps) { + const flowContext = useContext(FlowContext); + const isFullscreenInstance = Boolean(nodeId && flowContext?.fullscreenNodeId === nodeId); const connectionPathRole = useConnectionPathRole(nodeId); const hasSize = dimensions && @@ -81,7 +85,7 @@ export function BaseNode({ > {children} - {resizable && nodeId && ( + {resizable && nodeId && !isFullscreenInstance && ( )} - {handles} + {!isFullscreenInstance && handles} ); }