From 8c1f29226b16a31bf21fb03126b6d4fb2ae5ffbd Mon Sep 17 00:00:00 2001 From: Ari Date: Mon, 4 Jul 2022 22:45:34 -0400 Subject: [PATCH] cleaner nodes --- webapp/src/components/DAGFlow/DAGNode.css | 10 ++++++---- webapp/src/components/DAGFlow/DAGNode.tsx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/DAGFlow/DAGNode.css b/webapp/src/components/DAGFlow/DAGNode.css index 6c32f28..dca8908 100644 --- a/webapp/src/components/DAGFlow/DAGNode.css +++ b/webapp/src/components/DAGFlow/DAGNode.css @@ -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; } diff --git a/webapp/src/components/DAGFlow/DAGNode.tsx b/webapp/src/components/DAGFlow/DAGNode.tsx index fce9516..67f53ea 100644 --- a/webapp/src/components/DAGFlow/DAGNode.tsx +++ b/webapp/src/components/DAGFlow/DAGNode.tsx @@ -183,7 +183,7 @@ export const DAGNode: FC = ({ style={{ maxHeight: `calc(${height}px - 1em)`, maxWidth: `calc(${width}px - 1em)`, - minHeight: height / 2, + minHeight: `1em`, }} > {typeof label === "string" ? {label} : label}