added cleaner names + tooltip

This commit is contained in:
ari committed 2021-12-15 10:59:41 -05:00
1 parent 7e54e31efc
commit 64cafb401f
3 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -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}
/>
+1 -1
View File
@@ -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>
+1
View File
@@ -120,6 +120,7 @@ export const useNodeStyles = createAppUseStyles<{
textOverflow: 'ellipsis',
overflow: "hidden",
whiteSpace: "nowrap",
cursor: 'default',
},
buttonDelete: {
...buttonStyle,