@@ -2,7 +2,6 @@ import { useCallback, useMemo } from 'react'
22import { createLogger } from '@sim/logger'
33import { useParams } from 'next/navigation'
44import { Combobox , Label , Slider , Switch } from '@/components/emcn/components'
5- import { cn } from '@/lib/core/utils/cn'
65import { LongInput } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/long-input/long-input'
76import { ShortInput } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/short-input/short-input'
87import { 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