diff --git a/service-web/client/src/pages/ai/flow/FlowEditor.tsx b/service-web/client/src/pages/ai/flow/FlowEditor.tsx index afeab5c..cf9624e 100644 --- a/service-web/client/src/pages/ai/flow/FlowEditor.tsx +++ b/service-web/client/src/pages/ai/flow/FlowEditor.tsx @@ -26,16 +26,37 @@ import {useDataStore} from './store/DataStore.ts' import {useFlowStore} from './store/FlowStore.ts' const FlowableDiv = styled.div` - height: 92vh; + height: 100%; + + .react-flow__node.selectable { + &:focus { + box-shadow: 0 0 20px 1px #e8e8e8; + border-radius: 8px; + } + } + + .react-flow__handle.connectionindicator { + width: 10px; + height: 10px; + background-color: #ffffff; + border: 1px solid #000000; + + &:hover { + background-color: #e8e8e8; + border: 1px solid #c6c6c6; + } + } .toolbar { + position: absolute; + right: 20px; + top: 20px; } .node-card { - cursor: grab; + cursor: default; .card-container { - cursor: default; } } ` @@ -112,7 +133,7 @@ function FlowEditor() { { type: 'wrapper', size: 'none', - className: 'space-x-1 float-right', + className: 'space-x-2 text-right', body: [ { type: 'action', @@ -258,10 +279,10 @@ function FlowEditor() { "data": { "BMFP3Eov94": { "inputs": { - "文件名": { + "name": { "type": "text" }, - "文件描述": { + "description": { "type": "text", "description": "文件描述" } diff --git a/service-web/client/src/pages/ai/flow/node/AmisNode.tsx b/service-web/client/src/pages/ai/flow/node/AmisNode.tsx index 76257e9..6fff834 100644 --- a/service-web/client/src/pages/ai/flow/node/AmisNode.tsx +++ b/service-web/client/src/pages/ai/flow/node/AmisNode.tsx @@ -69,71 +69,70 @@ const AmisNode = ( const nodeName = isEmpty(nodeData?.node?.name) ? defaultNodeName : nodeData.node.name const nodeDescription = isEmpty(nodeData?.node?.description) ? defaultNodeDescription : nodeData.node?.description return ( -