|
@@ -181,7 +181,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|
|
if (parameterRule.type === 'string' && !parameterRule.options?.length) {
|
|
|
return (
|
|
|
<input
|
|
|
- className={cn(isInWorkflow ? 'w-[200px]' : 'w-full', 'flex items-center px-3 h-8 appearance-none outline-none rounded-lg bg-gray-100 text-[13px] text-gra-900')}
|
|
|
+ className={cn(isInWorkflow ? 'w-[200px]' : 'w-full', 'ml-4 flex items-center px-3 h-8 appearance-none outline-none rounded-lg bg-gray-100 text-[13px] text-gra-900')}
|
|
|
value={renderValue as string}
|
|
|
onChange={handleStringInputChange}
|
|
|
/>
|
|
@@ -192,7 +192,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|
|
return (
|
|
|
<SimpleSelect
|
|
|
className='!py-0'
|
|
|
- wrapperClassName={cn(isInWorkflow ? '!w-[200px]' : 'w-full', '!h-8')}
|
|
|
+ wrapperClassName={cn(isInWorkflow ? '!w-[200px]' : 'w-full', 'ml-4 !h-8')}
|
|
|
defaultValue={renderValue as string}
|
|
|
onSelect={handleSelect}
|
|
|
items={parameterRule.options.map(option => ({ value: option, name: option }))}
|
|
@@ -202,7 +202,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|
|
|
|
|
if (parameterRule.type === 'tag') {
|
|
|
return (
|
|
|
- <div className={isInWorkflow ? 'w-[200px]' : 'w-full'}>
|
|
|
+ <div className={cn(isInWorkflow ? 'w-[200px]' : 'w-full', 'ml-4')}>
|
|
|
<TagInput
|
|
|
items={renderValue as string[]}
|
|
|
onChange={handleTagChange}
|
|
@@ -219,7 +219,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|
|
return (
|
|
|
<div className={`flex items-center justify-between ${className}`}>
|
|
|
<div>
|
|
|
- <div className={cn(isInWorkflow ? 'w-[140px]' : 'w-full', 'shrink-0 flex items-center')}>
|
|
|
+ <div className={cn(isInWorkflow ? 'w-[140px]' : 'w-full', 'ml-4 shrink-0 flex items-center')}>
|
|
|
<div
|
|
|
className='mr-0.5 text-[13px] font-medium text-gray-700 truncate'
|
|
|
title={parameterRule.label[language] || parameterRule.label.en_US}
|
|
@@ -250,7 +250,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|
|
</div>
|
|
|
{
|
|
|
parameterRule.type === 'tag' && (
|
|
|
- <div className={cn(!isInWorkflow && 'w-[200px]', ' text-gray-400 text-xs font-normal')}>
|
|
|
+ <div className={cn(!isInWorkflow && 'w-[200px]', 'text-gray-400 text-xs font-normal')}>
|
|
|
{parameterRule?.tagPlaceholder?.[language]}
|
|
|
</div>
|
|
|
)
|