浏览代码

adjust line height

AykutSarac 2 年之前
父节点
当前提交
d43669150a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/containers/Editor/LiveEditor/helpers.ts

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

@@ -37,7 +37,7 @@ export function getEdgeNodes(
         .sort((a, b) => a - b);
       const longestLine = lineLengths.reverse()[0];
 
-      const height = lines.length * 18 < 30 ? 40 : lines.length * 18;
+      const height = lines.length * 17.8 < 30 ? 40 : lines.length * 17.8;
 
       nodes.push({
         id: el.id,