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
|
||||
}, [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
|
||||
? <SettingItem
|
||||
label={t('workflow.nodes.agent.strategy.shortLabel')}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const NodeComponent: FC<NodeProps<DocExtractorNodeType>> = ({
|
|||
const isSystem = isSystemVar(variable)
|
||||
const node = isSystem ? nodes.find(node => node.data.type === BlockEnum.Start) : nodes.find(node => node.id === variable[0])
|
||||
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>
|
||||
<VariableLabelInNode
|
||||
variables={variable}
|
||||
|
|
|
|||
Loading…
Reference in New Issue