Преглед изворни кода

: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);