From f707636162b127e57be219341afce7f40a0fd95c Mon Sep 17 00:00:00 2001 From: waleed Date: Thu, 12 Feb 2026 11:52:24 -0800 Subject: [PATCH] fix(tool-input): apply extra top padding only to SubBlock-first path Revert container padding to py-[8px] (MCP tools were correct). Wrap SubBlock-first output in a div with pt-[4px] so only registry tools get extra breathing room from the container top. Co-Authored-By: Claude Opus 4.6 --- .../sub-block/components/tool-input/tool-input.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx index 1eb84976f..b8e5c88d7 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx @@ -1716,7 +1716,7 @@ export const ToolInput = memo(function ToolInput({ {!isCustomTool && isExpandedForDisplay && ( -
+
{/* Operation dropdown for tools with multiple operations */} {(() => { const hasOperations = hasMultipleOperations(tool.type) @@ -1863,7 +1863,9 @@ export const ToolInput = memo(function ToolInput({ ) }) - return renderedElements + return ( +
{renderedElements}
+ ) } // Fallback: legacy ToolParameterConfig-based rendering