From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/workflow/operator/add-block.tsx | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/app/components/workflow/operator/add-block.tsx b/app/components/workflow/operator/add-block.tsx
index d35a5be..32f0007 100644
--- a/app/components/workflow/operator/add-block.tsx
+++ b/app/components/workflow/operator/add-block.tsx
@@ -9,7 +9,6 @@
import type { OffsetOptions } from '@floating-ui/react'
import {
generateNewNode,
- getNodeCustomTypeByNodeDataType,
} from '../utils'
import {
useAvailableBlocks,
@@ -57,7 +56,6 @@
const nodes = getNodes()
const nodesWithSameType = nodes.filter(node => node.data.type === type)
const { newNode } = generateNewNode({
- type: getNodeCustomTypeByNodeDataType(type),
data: {
...NODES_INITIAL_DATA[type],
title: nodesWithSameType.length > 0 ? `${t(`workflow.blocks.${type}`)} ${nodesWithSameType.length + 1}` : t(`workflow.blocks.${type}`),
@@ -80,11 +78,11 @@
title={t('workflow.common.addBlock')}
>
<div className={cn(
- 'flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',
+ 'flex items-center justify-center w-8 h-8 rounded-lg text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary cursor-pointer',
`${nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled'}`,
open && 'bg-state-accent-active text-text-accent',
)}>
- <RiAddCircleFill className='h-4 w-4' />
+ <RiAddCircleFill className='w-4 h-4' />
</div>
</TipPopup>
)
--
Gitblit v1.8.0