This commit is contained in:
parent
777c844537
commit
48f2e80759
1 changed files with 0 additions and 3 deletions
|
@ -128,9 +128,6 @@ export const lineNumberRender = (block: HTMLElement) => {
|
|||
if (block.parentElement.getAttribute("lineNumber") === "false") {
|
||||
return;
|
||||
}
|
||||
if (block.nextElementSibling && block.nextElementSibling.clientHeight === block.clientHeight) {
|
||||
return;
|
||||
}
|
||||
block.classList.add("protyle-linenumber");
|
||||
// clientHeight 总是取的整数
|
||||
block.parentElement.style.lineHeight = `${((parseInt(block.parentElement.style.fontSize) || window.siyuan.config.editor.fontSize) * 1.625 * 0.85).toFixed(0)}px`;
|
||||
|
|
Loading…
Add table
Reference in a new issue