desc to trigger zone
This commit is contained in:
1 parent
08f7ee2393
commit
869c23212b
3 files changed
+29
-13
No files matched your search
@@ -12,9 +12,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 1.5em 0.5em;
|
padding: 0.5em 0.5em;
|
||||||
/* width: calc(100% - 0.5em);
|
|
||||||
height: calc(100% - 0.5em); */
|
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@@ -24,13 +22,22 @@
|
|||||||
.dagnode--label {
|
.dagnode--label {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
word-wrap: break-word;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: 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;
|
text-align: center;
|
||||||
|
white-space: break-word;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dagnode .dagnode--inner .speed-dial {
|
.dagnode .dagnode--inner .speed-dial {
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ export const DAGNode: FC<DAGNodeProps> = ({
|
|||||||
<div
|
<div
|
||||||
className="dagnode--inner"
|
className="dagnode--inner"
|
||||||
style={{
|
style={{
|
||||||
maxHeight: height,
|
maxHeight: `calc(${height}px - 1em)`,
|
||||||
maxWidth: width,
|
maxWidth: `calc(${width}px - 1em)`,
|
||||||
minWidth: Math.max(width / 2, height / 2),
|
minWidth: Math.max(width / 2, height / 2),
|
||||||
borderBottomColor: theme.palette.grey[500],
|
borderBottomColor: theme.palette.grey[500],
|
||||||
borderLeftColor: theme.palette.grey[700],
|
borderLeftColor: theme.palette.grey[700],
|
||||||
@@ -134,7 +134,16 @@ export const DAGNode: FC<DAGNodeProps> = ({
|
|||||||
type="source"
|
type="source"
|
||||||
position={flipped ? Position.Bottom : Position.Right}
|
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>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { DAGAutomationFlowDims } from "components/DAGFlow/types";
|
import { DAGAutomationFlowDims } from "components/DAGFlow/types";
|
||||||
|
|
||||||
export const NODE_WIDTH = 150 as const;
|
export const NODE_WIDTH = 170 as const;
|
||||||
export const NODE_HEIGHT = 60 as const;
|
export const NODE_HEIGHT = 70 as const;
|
||||||
export const CONDITION_HEIGHT = 100 as const;
|
export const CONDITION_HEIGHT = 90 as const;
|
||||||
export const CONDITION_WIDTH = 200 as const;
|
export const CONDITION_WIDTH = 200 as const;
|
||||||
export const CIRCLE_SIZE = 40 as const;
|
export const CIRCLE_SIZE = 40 as const;
|
||||||
export const DISTANCE_FACTOR = 1.5 as const;
|
export const DISTANCE_FACTOR = 1.5 as const;
|
||||||
|
|||||||
Reference in new issue
Block a user