feat: highlight valid/invalid connection between nodes (#3266)

Change the inputs background to green/red to hint compatible connections, in adition to the `not-allowed` mouse cursor for incompatible connections
This commit is contained in:
Humberto Rodríguez A. 2024-09-26 16:47:43 +02:00 committed by GitHub
parent 4381656a6e
commit d2d3f3d0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -35,3 +35,13 @@
flex-grow: 1;
height: 100%;
}
.chatflow-canvas .react-flow__handle-connecting {
cursor: not-allowed;
background: #db4e4e !important;
}
.chatflow-canvas .react-flow__handle-valid {
cursor: crosshair;
background: #5dba62 !important;
}

View File

@ -554,6 +554,7 @@ const Canvas = () => {
fitView
deleteKeyCode={canvas.canvasDialogShow ? null : ['Delete']}
minZoom={0.1}
className='chatflow-canvas'
>
<Controls
style={{