style(flowEditor): 优化侧边栏图标颜色

- 移除了无用的 console.log 语句
- 将侧边栏图标的颜色从 'blue' 改为 'rgb(var(--primary-6))',以使用主题变量
master
钟良源 5 months ago
parent 3510a2d011
commit 10af5b0d78

@ -66,7 +66,6 @@ const FlowEditor: React.FC = () => {
event.preventDefault();
if (!reactFlowInstance) return;
console.log("1");
const callBack = event.dataTransfer.getData('application/reactflow');
const nodeData = JSON.parse(callBack);

@ -34,7 +34,7 @@ const SideBar: React.FC = () => {
onDragStart={(event) => onDragStart(event, item)}
>
<div className={styles['flex-box']}>
<DynamicIcon type={item.icon} style={{ fontSize: '18px', color: 'blue' }} />
<DynamicIcon type={item.icon} style={{ fontSize: '18px', color: 'rgb(var(--primary-6))' }} />
<div className={styles['node-name']}>{item.nodeName}</div>
</div>
</Card>

Loading…
Cancel
Save