mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
411cf0a239
10 changed files with 100 additions and 27 deletions
|
|
@ -135,7 +135,8 @@ export const lineNumberRender = (block: HTMLElement) => {
|
|||
lineList.map((line) => {
|
||||
let lineHeight = "";
|
||||
if (isWrap) {
|
||||
lineNumberTemp.textContent = line || "<br>";
|
||||
// windows 下空格高度为 0 https://github.com/siyuan-note/siyuan/issues/12346
|
||||
lineNumberTemp.textContent = line.trim() || "<br>";
|
||||
// 不能使用 lineNumberTemp.getBoundingClientRect().height.toFixed(1) 否则
|
||||
// windows 需等待字体下载完成再计算,否则导致不换行,高度计算错误
|
||||
// https://github.com/siyuan-note/siyuan/issues/9029
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue