Skip to content

Automate browser based workflows with AI

fix(SKY-10352): align control button hit areas with visual bounds (#6196)

Aaron Perez910fda8e3acd
diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
index fb2f9e1ef..5a16f9e32 100644
--- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
+++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
@@ -88,7 +88,7 @@ function DebuggerBlockRuns() {
}
return (
- <div className="relative flex w-full items-center justify-center gap-2 opacity-80 hover:opacity-100">
+ <div className="relative flex items-center justify-center gap-2 opacity-80 hover:opacity-100">
<div
ref={scrollContainerRef}
className="flex max-w-[7rem] gap-2 overflow-x-auto rounded-full bg-[#020617] p-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
diff --git a/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css b/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
index 82517050b..6756ced11 100644
--- a/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
+++ b/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
@@ -82,6 +82,14 @@
color: white;
}
+/* TooltipTrigger wraps each ControlButton in a <div> that defaults to
+ display:block. Without flex, the div's hit area can diverge from the
+ button's visual bounds — the clickable region shifts upward and overlaps
+ the preceding button's tooltip zone. */
+.react-flow__controls > div {
+ display: flex;
+}
+
/* Restore xyflow's between-button divider when a ControlButton is wrapped in a
<TooltipTrigger asChild> div, since the wrapper makes the button :last-child
of its parent and xyflow's default `:last-child { border-bottom: none }` zeros