Skip to content

Commit a25b512

Browse files
fix: http_node style issue
1 parent cee65c4 commit a25b512

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

web/app/components/workflow/nodes/http/components/api-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const ApiInput: FC<Props> = ({
7272
nodesOutputVars={availableVars}
7373
availableNodes={availableNodesWithParent}
7474
onFocusChange={setIsFocus}
75-
placeholder={!readonly ? t('workflow.nodes.http.apiPlaceholder')! : ''}
75+
placeholder={t('workflow.nodes.http.apiPlaceholder')!}
7676
placeholderClassName='!leading-[21px]'
7777
/>
7878
</div >

web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ const InputItem: FC<Props> = ({
6767
/>
6868
)
6969
: <div
70-
className="pl-0.5 w-full h-[18px] leading-[18px]"
70+
className={cn(className, 'hover:bg-gray-50 hover:cursor-text', 'relative flex h-full')}
7171
>
7272
{!hasValue && <div className='text-gray-300 text-xs font-normal'>{placeholder}</div>}
7373
{hasValue && (
7474
<Input
7575
instanceId={instanceId}
76-
className={cn(isFocus ? 'shadow-xs bg-gray-50 border-gray-300' : 'bg-gray-100 border-gray-100', 'w-0 grow rounded-lg px-3 py-[6px] border')}
76+
className={cn(isFocus ? 'bg-gray-100' : 'bg-width', 'w-0 grow px-3 py-1')}
7777
value={value}
7878
onChange={onChange}
7979
readOnly={readOnly}

web/app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const KeyValueItem: FC<Props> = ({
4242
draft[key] = value
4343
})
4444
onChange(newPayload)
45-
if (key === 'value' && isLastItem)
45+
if (key === 'value' && isLastItem && !readonly)
4646
onAdd()
4747
}
4848
}, [onChange, onAdd, isLastItem, payload])

0 commit comments

Comments
 (0)