Skip to content

Commit 699b9eb

Browse files
committed
closed gap in mcp dynamic args subblock
1 parent a0a6b00 commit 699b9eb

File tree

1 file changed

+25
-23
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/mcp-dynamic-args

1 file changed

+25
-23
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/mcp-dynamic-args/mcp-dynamic-args.tsx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export function McpDynamicArgs({
537537
}
538538

539539
return (
540-
<div className='relative space-y-4'>
540+
<div className='relative'>
541541
{/* Hidden dummy inputs to prevent browser password manager autofill */}
542542
<input
543543
type='text'
@@ -563,28 +563,30 @@ export function McpDynamicArgs({
563563
tabIndex={-1}
564564
readOnly
565565
/>
566-
{toolSchema.properties &&
567-
Object.entries(toolSchema.properties).map(([paramName, paramSchema]) => {
568-
const inputType = getInputType(paramSchema as any)
569-
const showLabel = inputType !== 'switch'
570-
571-
return (
572-
<div key={paramName} className='space-y-2'>
573-
{showLabel && (
574-
<Label
575-
className={cn(
576-
'font-medium text-sm',
577-
toolSchema.required?.includes(paramName) &&
578-
'after:ml-1 after:text-red-500 after:content-["*"]'
579-
)}
580-
>
581-
{formatParameterLabel(paramName)}
582-
</Label>
583-
)}
584-
{renderParameterInput(paramName, paramSchema as any)}
585-
</div>
586-
)
587-
})}
566+
<div className='space-y-4'>
567+
{toolSchema.properties &&
568+
Object.entries(toolSchema.properties).map(([paramName, paramSchema]) => {
569+
const inputType = getInputType(paramSchema as any)
570+
const showLabel = inputType !== 'switch'
571+
572+
return (
573+
<div key={paramName} className='space-y-2'>
574+
{showLabel && (
575+
<Label
576+
className={cn(
577+
'font-medium text-sm',
578+
toolSchema.required?.includes(paramName) &&
579+
'after:ml-1 after:text-red-500 after:content-["*"]'
580+
)}
581+
>
582+
{formatParameterLabel(paramName)}
583+
</Label>
584+
)}
585+
{renderParameterInput(paramName, paramSchema as any)}
586+
</div>
587+
)
588+
})}
589+
</div>
588590
</div>
589591
)
590592
}

0 commit comments

Comments
 (0)