added cleaner names + tooltip
This commit is contained in:
1 parent
7e54e31efc
commit
64cafb401f
3 files changed
+4
-2
No files matched your search
@@ -7,6 +7,7 @@ import { DAGEdge } from "./DAGEdge";
|
||||
import { AddButton } from "./AddButton";
|
||||
import { IteratorWrap } from "utils/iter";
|
||||
import { DAGCircle } from "./DAGCircle";
|
||||
import { getDescriptionFromAutomationNode } from "utils/formatting";
|
||||
|
||||
|
||||
export interface DAGCircleElm {
|
||||
@@ -87,7 +88,7 @@ export function* mapDataToElements({
|
||||
height={st.nodeHeight}
|
||||
width={st.nodeWidth}
|
||||
loc={nodeLoc}
|
||||
text={elm.node?.alias ?? elm.node.$smType}
|
||||
text={getDescriptionFromAutomationNode(elm.node)}
|
||||
color={elm.node.$smType === 'action' ? 'green' : 'blue'}
|
||||
onXClick={elm.onRemove}
|
||||
/>
|
||||
|
||||
@@ -42,7 +42,7 @@ export const DAGNode = ({
|
||||
<button className={classes.buttonDelete}>X</button>
|
||||
</div>
|
||||
<div className={classes.textWrap}>
|
||||
<span className={classes.text}>
|
||||
<span className={classes.text} title={text}>
|
||||
{text}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -120,6 +120,7 @@ export const useNodeStyles = createAppUseStyles<{
|
||||
textOverflow: 'ellipsis',
|
||||
overflow: "hidden",
|
||||
whiteSpace: "nowrap",
|
||||
cursor: 'default',
|
||||
},
|
||||
buttonDelete: {
|
||||
...buttonStyle,
|
||||
|
||||
Reference in new issue
Block a user