mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
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") {
|
if (block.parentElement.getAttribute("lineNumber") === "false") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (block.nextElementSibling && block.nextElementSibling.clientHeight === block.clientHeight) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
block.classList.add("protyle-linenumber");
|
block.classList.add("protyle-linenumber");
|
||||||
// clientHeight 总是取的整数
|
// clientHeight 总是取的整数
|
||||||
block.parentElement.style.lineHeight = `${((parseInt(block.parentElement.style.fontSize) || window.siyuan.config.editor.fontSize) * 1.625 * 0.85).toFixed(0)}px`;
|
block.parentElement.style.lineHeight = `${((parseInt(block.parentElement.style.fontSize) || window.siyuan.config.editor.fontSize) * 1.625 * 0.85).toFixed(0)}px`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue