浏览代码

:art: 代码块限制高度后行号

Vanessa 8 月之前
父节点
当前提交
3e016551cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/protyle/render/highlightRender.ts

+ 1 - 1
app/src/protyle/render/highlightRender.ts

@@ -143,7 +143,7 @@ width: ${codeElement.clientWidth}px;
 white-space:${codeElement.style.whiteSpace};
 word-break:${codeElement.style.wordBreak};
 font-variant-ligatures:${codeElement.style.fontVariantLigatures};
-box-sizing: border-box;position: absolute;padding-top:0 !important;padding-bottom:0 !important;min-height:auto !important;`);
+max-height: none;box-sizing: border-box;position: absolute;padding-top:0 !important;padding-bottom:0 !important;min-height:auto !important;`);
     lineNumberTemp.setAttribute("contenteditable", "true");
     block.insertAdjacentElement("afterend", lineNumberTemp);