Skip to content

Commit f385bd8

Browse files
committed
consistent and less wide nodes in Component Map
1 parent 927aa82 commit f385bd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ export default function ComponentMap({
241241
const widthFunc: number = (name) => {
242242
// function that takes in a node's name and returns a number that is related to the length of the name. Used for determining the node width.
243243
const nodeLength = name.length;
244+
return nodeLength * 7 + 20;
244245
if (nodeLength <= 5) return nodeLength + 80; // returns a number between 80-85
245246
if (nodeLength <= 10) return nodeLength + 120; // returns a number between 125-130
246247
return nodeLength + 140; // returns a number greater than 150

0 commit comments

Comments
 (0)