Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix node height for large data

AykutSarac84b532c446b5
diff --git a/src/containers/LiveEditor/helpers.ts b/src/containers/LiveEditor/helpers.ts
index c78af2bc..12fd3ec9 100644
--- a/src/containers/LiveEditor/helpers.ts
+++ b/src/containers/LiveEditor/helpers.ts
@@ -32,7 +32,7 @@ export function getEdgeNodes(graph: any, isExpanded: boolean = true): any {
.sort((a, b) => a - b);
const longestLine = lineLengths.reverse()[0];
- const height = (lines.length * 14 < 30 ? 30 : lines.length * 14) + 10;
+ const height = (lines.length * 18 < 30 ? 40 : lines.length * 18);
nodes.push({
id: el.id,