Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Overlay the hover drag grip on the block card gutter instead of reserving header space (SKY-13289) (#7904)
Suchintanb860f3896c16
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsxindex c77bf95c3..116cfd6bb 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx@@ -957,32 +957,37 @@ function NodeHeader({</div>) : null}- <header className="group !mt-0 flex h-[2.75rem] justify-between gap-2">+ <header className="group relative !mt-0 flex h-[2.75rem] justify-between gap-2"><divclassName={cn("flex min-w-0 gap-2", {"opacity-50": thisBlockIsPlaying,})}>- {!isReadOnlyScope &&- (isBlockFinallyGated(- blockLabel,- workflowSettingsStore.finallyBlockLabel,- ) ? (- <TooltipProvider delayDuration={300}>- <Tooltip>- <TooltipTrigger asChild>- <div>- <NodeGripHandle blockLabel={blockLabel} disabled />- </div>- </TooltipTrigger>- <TooltipContent>- Finally block runs last - reorder to a different position- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : (- gripHandle- ))}+ {/* Overlays the node cards' px-6 gutter instead of reserving flex+ space for the hover-only grip. */}+ {!isReadOnlyScope && (+ <div className="absolute -left-6 top-0 flex w-6 justify-center">+ {isBlockFinallyGated(+ blockLabel,+ workflowSettingsStore.finallyBlockLabel,+ ) ? (+ <TooltipProvider delayDuration={300}>+ <Tooltip>+ <TooltipTrigger asChild>+ <div>+ <NodeGripHandle blockLabel={blockLabel} disabled />+ </div>+ </TooltipTrigger>+ <TooltipContent>+ Finally block runs last - reorder to a different position+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ) : (+ gripHandle+ )}+ </div>+ )}<div className="flex h-[2.75rem] w-[2.75rem] shrink-0 items-center justify-center rounded border border-border dark:border-slate-600">{/* Without shrink-0, a long label or subtitle in the siblingcolumn steals width from this box before its own min-content. */}