moved the edit to the tooltip
This commit is contained in:
1 parent
dc99d57964
commit
4eccd75058
1 file changed
+5
-6
@@ -109,7 +109,10 @@ export const DAGNode: FC<DAGNodeProps> = ({
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
>
|
>
|
||||||
<IconButton onClick={onXClick} size="small">
|
<IconButton onClick={onXClick} size="small">
|
||||||
<DeleteForeverIcon fontSize="inherit" />
|
<DeleteForeverIcon fontSize="inherit" color="warning" />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={onEditClick} size="small">
|
||||||
|
<PencilIcon color={theme.green} size={0.8} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
{Object.entries(onMove).map(([key, action]) => (
|
{Object.entries(onMove).map(([key, action]) => (
|
||||||
<IconButton
|
<IconButton
|
||||||
@@ -127,11 +130,7 @@ export const DAGNode: FC<DAGNodeProps> = ({
|
|||||||
<div className={classes.textWrap}>
|
<div className={classes.textWrap}>
|
||||||
<span className={classes.text}>{label}</span>
|
<span className={classes.text}>{label}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.rightEdge} onClick={onEditClick}>
|
<div className={classes.rightEdge} onClick={onEditClick}></div>
|
||||||
<button className={classes.buttonEdit}>
|
|
||||||
<PencilIcon size={1.1} color={theme.green} />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in new issue
Block a user