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/header/run-and-history.tsx | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/components/workflow/header/run-and-history.tsx b/app/components/workflow/header/run-and-history.tsx index 19ed87d..d3c5b99 100644 --- a/app/components/workflow/header/run-and-history.tsx +++ b/app/components/workflow/header/run-and-history.tsx @@ -31,9 +31,9 @@ <> <div className={cn( - 'flex h-7 items-center rounded-md px-2.5 text-[13px] font-medium text-components-button-secondary-accent-text', - 'cursor-pointer hover:bg-state-accent-hover', - isRunning && '!cursor-not-allowed bg-state-accent-hover', + 'flex items-center px-2.5 h-7 rounded-md text-[13px] font-medium text-components-button-secondary-accent-text', + 'hover:bg-state-accent-hover cursor-pointer', + isRunning && 'bg-state-accent-hover !cursor-not-allowed', )} onClick={() => { handleWorkflowStartRunInWorkflow() @@ -43,13 +43,13 @@ isRunning ? ( <> - <RiLoader2Line className='mr-1 h-4 w-4 animate-spin' /> + <RiLoader2Line className='mr-1 w-4 h-4 animate-spin' /> {t('workflow.common.running')} </> ) : ( <> - <RiPlayLargeLine className='mr-1 h-4 w-4' /> + <RiPlayLargeLine className='mr-1 w-4 h-4' /> {t('workflow.common.run')} </> ) @@ -58,10 +58,10 @@ { isRunning && ( <div - className='ml-0.5 flex h-7 w-7 cursor-pointer items-center justify-center rounded-md hover:bg-black/5' + className='flex items-center justify-center ml-0.5 w-7 h-7 cursor-pointer hover:bg-black/5 rounded-md' onClick={() => handleStopRun(workflowRunningData?.task_id || '')} > - <StopCircle className='h-4 w-4 text-components-button-ghost-text' /> + <StopCircle className='w-4 h-4 text-components-button-ghost-text' /> </div> ) } @@ -77,12 +77,12 @@ return ( <div className={cn( - 'flex h-7 items-center rounded-md px-2.5 text-[13px] font-medium text-components-button-secondary-accent-text', - 'cursor-pointer hover:bg-state-accent-hover', + 'flex items-center px-2.5 h-7 rounded-md text-[13px] font-medium text-components-button-secondary-accent-text', + 'hover:bg-state-accent-hover cursor-pointer', )} onClick={() => handleWorkflowStartRunInChatflow()} > - <RiPlayLargeLine className='mr-1 h-4 w-4' /> + <RiPlayLargeLine className='mr-1 w-4 h-4' /> {t('workflow.common.debugAndPreview')} </div> ) @@ -94,14 +94,14 @@ const { nodesReadOnly } = useNodesReadOnly() return ( - <div className='flex h-8 items-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-0.5 shadow-xs'> + <div className='flex items-center px-0.5 h-8 rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg shadow-xs'> { !isChatMode && <RunMode /> } { isChatMode && <PreviewMode /> } - <div className='mx-0.5 h-3.5 w-[1px] bg-divider-regular'></div> + <div className='mx-0.5 w-[1px] h-3.5 bg-divider-regular'></div> <ViewHistory /> <Checklist disabled={nodesReadOnly} /> </div> -- Gitblit v1.8.0