desc to trigger zone

This commit is contained in:
ari committed 2022-06-29 17:04:39 -04:00
1 parent 08f7ee2393
commit 869c23212b
3 files changed
+29 -13

No files matched your search

+14 -7
View File
@@ -12,9 +12,7 @@
flex-direction: row;
justify-content: flex-start;
align-items: center;
padding: 1.5em 0.5em;
/* width: calc(100% - 0.5em);
height: calc(100% - 0.5em); */
padding: 0.5em 0.5em;
border-style: solid;
border-width: 1px;
border-radius: 10px;
@@ -24,13 +22,22 @@
.dagnode--label {
flex: 1;
display: flex;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
overflow-wrap: break-word;
align-items: center;
justify-content: center;
overflow: hidden;
/* overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: break-word;
overflow-wrap: break-word; */
}
.dagnode--label span {
text-align: center;
white-space: break-word;
overflow: hidden;
text-overflow: ellipsis;
}
.dagnode .dagnode--inner .speed-dial {
+12 -3
View File
@@ -84,8 +84,8 @@ export const DAGNode: FC<DAGNodeProps> = ({
<div
className="dagnode--inner"
style={{
maxHeight: height,
maxWidth: width,
maxHeight: `calc(${height}px - 1em)`,
maxWidth: `calc(${width}px - 1em)`,
minWidth: Math.max(width / 2, height / 2),
borderBottomColor: theme.palette.grey[500],
borderLeftColor: theme.palette.grey[700],
@@ -134,7 +134,16 @@ export const DAGNode: FC<DAGNodeProps> = ({
type="source"
position={flipped ? Position.Bottom : Position.Right}
/>
<div className="dagnode--label">{label}</div>
<div
className="dagnode--label"
style={{
maxHeight: `calc(${height}px - 1em)`,
maxWidth: `calc(${width}px - 1em)`,
minHeight: height / 2,
}}
>
{typeof label === "string" ? <span>{label}</span> : label}
</div>
</div>
</div>
</>
+3 -3
View File
@@ -1,8 +1,8 @@
import { DAGAutomationFlowDims } from "components/DAGFlow/types";
export const NODE_WIDTH = 150 as const;
export const NODE_HEIGHT = 60 as const;
export const CONDITION_HEIGHT = 100 as const;
export const NODE_WIDTH = 170 as const;
export const NODE_HEIGHT = 70 as const;
export const CONDITION_HEIGHT = 90 as const;
export const CONDITION_WIDTH = 200 as const;
export const CIRCLE_SIZE = 40 as const;
export const DISTANCE_FACTOR = 1.5 as const;