diff --git a/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx b/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx index 0a01721ef3..d1cc74a0cf 100644 --- a/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx @@ -56,7 +56,7 @@ function WorkflowHeader({ editable={true} onChange={onTitleChange} value={title} - className="max-w-96 text-3xl" + className="text-3xl" />
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx index 7f9ab7ce04..70a7c1efe1 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx @@ -1,4 +1,10 @@ import { Input } from "@/components/ui/input"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { cn } from "@/util/utils"; import { useLayoutEffect, useRef } from "react"; @@ -29,33 +35,41 @@ function EditableNodeTitle({ value, editable, onChange, className }: Props) { } return ( - { - if (!editable) { - event.currentTarget.value = value; - return; - } - onChange(event.target.value); - }} - onKeyDown={(event) => { - if (!editable) { - return; - } - if (event.key === "Enter") { - event.currentTarget.blur(); - } - if (event.key === "Escape") { - event.currentTarget.value = value; - event.currentTarget.blur(); - } - setSize(); - }} - onInput={setSize} - defaultValue={value} - /> + + + + { + if (!editable) { + event.currentTarget.value = value; + return; + } + onChange(event.target.value); + }} + onKeyDown={(event) => { + if (!editable) { + return; + } + if (event.key === "Enter") { + event.currentTarget.blur(); + } + if (event.key === "Escape") { + event.currentTarget.value = value; + event.currentTarget.blur(); + } + setSize(); + }} + onInput={setSize} + defaultValue={value} + /> + + Click to edit + + ); }