We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927aa82 commit f385bd8Copy full SHA for f385bd8
src/app/components/StateRoute/ComponentMap/ComponentMap.tsx
@@ -241,6 +241,7 @@ export default function ComponentMap({
241
const widthFunc: number = (name) => {
242
// 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.
243
const nodeLength = name.length;
244
+ return nodeLength * 7 + 20;
245
if (nodeLength <= 5) return nodeLength + 80; // returns a number between 80-85
246
if (nodeLength <= 10) return nodeLength + 120; // returns a number between 125-130
247
return nodeLength + 140; // returns a number greater than 150
0 commit comments