Explorar o código

fix node height for large data

AykutSarac %!s(int64=3) %!d(string=hai) anos
pai
achega
84b532c446
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       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,