Переглянути джерело

fix node height for large data

AykutSarac 3 роки тому
батько
коміт
84b532c446
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/containers/LiveEditor/helpers.ts

+ 1 - 1
src/containers/LiveEditor/helpers.ts

@@ -32,7 +32,7 @@ export function getEdgeNodes(graph: any, isExpanded: boolean = true): any {
         .sort((a, b) => a - b);
         .sort((a, b) => a - b);
       const longestLine = lineLengths.reverse()[0];
       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({
       nodes.push({
         id: el.id,
         id: el.id,