Skip to content

Commit 612dc17

Browse files
committed
fix(mcp-dynamic-args): align label styling with standard subblock labels
1 parent 6e85a56 commit 612dc17

File tree

1 file changed

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

1 file changed

+9
-11
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: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useCallback, useMemo } from 'react'
22
import { createLogger } from '@sim/logger'
33
import { useParams } from 'next/navigation'
44
import { Combobox, Label, Slider, Switch } from '@/components/emcn/components'
5-
import { cn } from '@/lib/core/utils/cn'
65
import { LongInput } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/long-input/long-input'
76
import { ShortInput } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/short-input/short-input'
87
import { useSubBlockValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks/use-sub-block-value'
@@ -147,7 +146,7 @@ export function McpDynamicArgs({
147146
/>
148147
<Label
149148
htmlFor={`${paramName}-switch`}
150-
className='cursor-pointer font-normal text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
149+
className='cursor-pointer font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
151150
>
152151
{formatParameterLabel(paramName)}
153152
</Label>
@@ -351,15 +350,14 @@ export function McpDynamicArgs({
351350
<div key={paramName} className='subblock-row'>
352351
<div className='subblock-content flex flex-col gap-[10px]'>
353352
{showLabel && (
354-
<Label
355-
className={cn(
356-
'font-medium text-sm',
357-
toolSchema.required?.includes(paramName) &&
358-
'after:ml-1 after:text-red-500 after:content-["*"]'
359-
)}
360-
>
361-
{formatParameterLabel(paramName)}
362-
</Label>
353+
<div className='flex items-center justify-between gap-[6px] pl-[2px]'>
354+
<Label className='flex items-baseline gap-[6px] whitespace-nowrap'>
355+
{formatParameterLabel(paramName)}
356+
{toolSchema.required?.includes(paramName) && (
357+
<span className='ml-0.5'>*</span>
358+
)}
359+
</Label>
360+
</div>
363361
)}
364362
{renderParameterInput(paramName, paramSchema as any)}
365363
</div>

0 commit comments

Comments
 (0)