cleaner nodes
This commit is contained in:
1 parent
550795bf7f
commit
8c1f29226b
2 files changed
+7
-5
No files matched your search
@@ -10,11 +10,13 @@
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0.5em 0.5em;
|
||||
padding: 0.25em 0.75em 0.5em 0.75em;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-top-width: 0.25em;
|
||||
border-left-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@@ -22,7 +24,7 @@
|
||||
.dagnode--label {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ export const DAGNode: FC<DAGNodeProps> = ({
|
||||
style={{
|
||||
maxHeight: `calc(${height}px - 1em)`,
|
||||
maxWidth: `calc(${width}px - 1em)`,
|
||||
minHeight: height / 2,
|
||||
minHeight: `1em`,
|
||||
}}
|
||||
>
|
||||
{typeof label === "string" ? <span>{label}</span> : label}
|
||||
|
||||
Reference in new issue
Block a user