mirror of https://github.com/langgenius/dify.git
fix: adjust padding in AgentNode and NodeComponent for consistent layout (#28175)
This commit is contained in:
parent
4f4911686d
commit
470883858e
|
|
@ -65,7 +65,7 @@ const AgentNode: FC<NodeProps<AgentNodeType>> = (props) => {
|
||||||
})
|
})
|
||||||
return tools
|
return tools
|
||||||
}, [currentStrategy?.parameters, inputs.agent_parameters])
|
}, [currentStrategy?.parameters, inputs.agent_parameters])
|
||||||
return <div className='mb-1 space-y-1 px-3 py-1'>
|
return <div className='mb-1 space-y-1 px-3'>
|
||||||
{inputs.agent_strategy_name
|
{inputs.agent_strategy_name
|
||||||
? <SettingItem
|
? <SettingItem
|
||||||
label={t('workflow.nodes.agent.strategy.shortLabel')}
|
label={t('workflow.nodes.agent.strategy.shortLabel')}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const NodeComponent: FC<NodeProps<DocExtractorNodeType>> = ({
|
||||||
const isSystem = isSystemVar(variable)
|
const isSystem = isSystemVar(variable)
|
||||||
const node = isSystem ? nodes.find(node => node.data.type === BlockEnum.Start) : nodes.find(node => node.id === variable[0])
|
const node = isSystem ? nodes.find(node => node.data.type === BlockEnum.Start) : nodes.find(node => node.id === variable[0])
|
||||||
return (
|
return (
|
||||||
<div className='relative px-3'>
|
<div className='relative mb-1 px-3 py-1'>
|
||||||
<div className='system-2xs-medium-uppercase mb-1 text-text-tertiary'>{t(`${i18nPrefix}.inputVar`)}</div>
|
<div className='system-2xs-medium-uppercase mb-1 text-text-tertiary'>{t(`${i18nPrefix}.inputVar`)}</div>
|
||||||
<VariableLabelInNode
|
<VariableLabelInNode
|
||||||
variables={variable}
|
variables={variable}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue