fix: adjust padding in AgentNode and NodeComponent for consistent layout (#28175)

This commit is contained in:
GuanMu 2025-11-13 20:16:56 +08:00 committed by GitHub
parent 4f4911686d
commit 470883858e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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')}

View File

@ -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}