mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-12 15:34:58 -05:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -1716,7 +1716,7 @@ export const ToolInput = memo(function ToolInput({
|
||||
</div>
|
||||
|
||||
{!isCustomTool && isExpandedForDisplay && (
|
||||
<div className='flex flex-col gap-[10px] overflow-visible rounded-b-[4px] border-[var(--border-1)] border-t bg-[var(--surface-2)] px-[8px] pt-[12px] pb-[8px]'>
|
||||
<div className='flex flex-col gap-[10px] overflow-visible rounded-b-[4px] border-[var(--border-1)] border-t bg-[var(--surface-2)] px-[8px] py-[8px]'>
|
||||
{/* 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 (
|
||||
<div className='flex flex-col gap-[10px] pt-[4px]'>{renderedElements}</div>
|
||||
)
|
||||
}
|
||||
|
||||
// Fallback: legacy ToolParameterConfig-based rendering
|
||||
|
||||
Reference in New Issue
Block a user