mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
node style
This commit is contained in:
@ -13,8 +13,11 @@ const Node: FC<NodeProps<StartNodeType>> = ({
|
||||
const { t } = useTranslation()
|
||||
const { variables } = data
|
||||
|
||||
if (!variables.length)
|
||||
return null
|
||||
|
||||
return (
|
||||
<div className='px-3'>
|
||||
<div className='mb-1 px-3 py-1'>
|
||||
<div className='space-y-0.5'>
|
||||
{variables.map(variable => (
|
||||
<div key={variable.variable} className='flex items-center h-6 justify-between bg-gray-100 rounded-md px-1 space-x-1 text-xs font-normal text-gray-700'>
|
||||
|
||||
@ -50,7 +50,7 @@ const Panel: FC<NodePanelProps<StartNodeType>> = ({
|
||||
/>
|
||||
</Field>
|
||||
</div>
|
||||
<Split />
|
||||
{isChatMode && <Split />}
|
||||
{isChatMode && (
|
||||
<div className='px-4 pt-4 pb-2'>
|
||||
<OutputVars title={t(`${i18nPrefix}.builtInVar`)!}>
|
||||
|
||||
Reference in New Issue
Block a user