Skip to content

Commit 7f614ec

Browse files
committed
fix(workflow): remove unnecessary edit button from text nodes
Signed-off-by: betterclever <[email protected]>
1 parent 7099d26 commit 7f614ec

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

frontend/src/components/workflow/WorkflowNode.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useRef, useState } from 'react'
22
import { Handle, NodeResizer, Position, type NodeProps, type Node, useReactFlow, useUpdateNodeInternals } from 'reactflow'
3-
import { Loader2, CheckCircle, XCircle, Clock, Activity, AlertCircle, Pause, Terminal as TerminalIcon, Pencil, Trash2 } from 'lucide-react'
3+
import { Loader2, CheckCircle, XCircle, Clock, Activity, AlertCircle, Pause, Terminal as TerminalIcon, Trash2 } from 'lucide-react'
44
import * as LucideIcons from 'lucide-react'
55
import { cn } from '@/lib/utils'
66
import { MarkdownView } from '@/components/ui/markdown'
@@ -854,22 +854,7 @@ export const WorkflowNode = ({ data, selected, id }: NodeProps<NodeData>) => {
854854
{/* Delete button (Design Mode only, not Entry Point) */}
855855

856856

857-
{/* Edit button for text blocks - explicitly select node for editing */}
858-
{isTextBlock && mode === 'design' && (
859-
<button
860-
type="button"
861-
className="p-1 rounded hover:bg-muted/80 text-muted-foreground hover:text-foreground transition-colors"
862-
title="Edit content"
863-
aria-label="Edit content"
864-
onClick={(e) => {
865-
// Stop propagation to prevent triggering parent div's onClick
866-
e.stopPropagation()
867-
// The node selection will be handled by React Flow's onNodeClick
868-
}}
869-
>
870-
<Pencil className="h-3.5 w-3.5" />
871-
</button>
872-
)}
857+
873858

874859
{/* Embedded Webhook Dialog (Controlled) */}
875860
{isEntryPoint && (

0 commit comments

Comments
 (0)