mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 22:14:06 +01:00
This commit is contained in:
parent
2d056409c4
commit
f154d905bb
2 changed files with 1 additions and 4 deletions
|
|
@ -247,8 +247,7 @@ const setHTML = (options: {
|
|||
protyle.element.style.minHeight = Math.min(30 + protyle.wysiwyg.element.clientHeight, window.innerHeight / 3) + "px";
|
||||
}
|
||||
// 49 = 16(上图标)+16(下图标)+8(padding)+9(底部距离)
|
||||
// @ts-ignore
|
||||
protyle.scroll.element.parentElement.setAttribute("style", `--b3-dynamicscroll-width:${protyle.contentElement.clientHeight - 49}px;${isMobile() ? "" : "right:10px"}`);
|
||||
protyle.scroll.element.parentElement.setAttribute("style", `--b3-dynamicscroll-width:${Math.min(protyle.contentElement.clientHeight - 49, 200)}px;${isMobile() ? "" : "right:10px"}`);
|
||||
}
|
||||
// 屏幕太高的页签 https://github.com/siyuan-note/siyuan/issues/5018
|
||||
if (!protyle.scroll.element.classList.contains("fn__none") &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue