From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/workflow/nodes/if-else/node.tsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/workflow/nodes/if-else/node.tsx b/app/components/workflow/nodes/if-else/node.tsx index 6bc2e5c..10ed789 100644 --- a/app/components/workflow/nodes/if-else/node.tsx +++ b/app/components/workflow/nodes/if-else/node.tsx @@ -37,7 +37,7 @@ return !!condition.value } }, []) - const conditionNotSet = (<div className='flex h-6 items-center space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-xs font-normal text-text-secondary'> + const conditionNotSet = (<div className='flex items-center h-6 px-1 space-x-1 text-xs font-normal text-text-secondary bg-workflow-block-parma-bg rounded-md'> {t(`${i18nPrefix}.conditionNotSetup`)} </div>) @@ -46,8 +46,8 @@ { cases.map((caseItem, index) => ( <div key={caseItem.case_id}> - <div className='relative flex h-6 items-center px-1'> - <div className='flex w-full items-center justify-between'> + <div className='relative flex items-center h-6 px-1'> + <div className='flex items-center justify-between w-full'> <div className='text-[10px] font-semibold text-text-tertiary'> {casesLength > 1 && `CASE ${index + 1}`} </div> @@ -80,7 +80,7 @@ ) : conditionNotSet} {i !== caseItem.conditions.length - 1 && ( - <div className='absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent'>{t(`${i18nPrefix}.${caseItem.logical_operator}`)}</div> + <div className='absolute z-10 right-1 bottom-[-10px] leading-4 text-[10px] font-medium text-text-accent uppercase'>{t(`${i18nPrefix}.${caseItem.logical_operator}`)}</div> )} </div> ))} @@ -88,8 +88,8 @@ </div> )) } - <div className='relative flex h-6 items-center px-1'> - <div className='w-full text-right text-xs font-semibold text-text-secondary'>ELSE</div> + <div className='relative flex items-center h-6 px-1'> + <div className='w-full text-xs font-semibold text-right text-text-secondary'>ELSE</div> <NodeSourceHandle {...props} handleId='false' -- Gitblit v1.8.0