Browse Source

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

Vanessa 8 months ago
parent
commit
3e016551cd
1 changed files with 1 additions and 1 deletions
  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);