mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Replace .edgebutton 'x' text with <IconX/> (#4035)
replace .edgebutton 'x' text with <IconX/>
This commit is contained in:
@@ -4,6 +4,7 @@ import { useDispatch } from 'react-redux'
|
||||
import { useContext } from 'react'
|
||||
import { SET_DIRTY } from '@/store/actions'
|
||||
import { flowContext } from '@/store/context/ReactFlowContext'
|
||||
import { IconX } from '@tabler/icons-react'
|
||||
|
||||
import './index.css'
|
||||
|
||||
@@ -53,7 +54,7 @@ const ButtonEdge = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, ta
|
||||
>
|
||||
<div>
|
||||
<button className='edgebutton' onClick={(event) => onEdgeClick(event, id)}>
|
||||
×
|
||||
<IconX stroke={2} size='12' />
|
||||
</button>
|
||||
</div>
|
||||
</foreignObject>
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
.edgebutton {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
background: #eee;
|
||||
border: 1px solid #fff;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.edgebutton:hover {
|
||||
|
||||
Reference in New Issue
Block a user