This commit is contained in:
Vanessa 2023-06-09 09:54:18 +08:00
parent 2d056409c4
commit f154d905bb
2 changed files with 1 additions and 4 deletions

View file

@ -2,7 +2,6 @@
padding: 34px 16px 16px 24px;
cursor: text;
display: flex;
align-items: flex-start;
flex-direction: column;
box-sizing: border-box;
@ -17,7 +16,6 @@
[data-node-id] {
position: relative;
width: 100%;
&[custom-riff-decks] {
box-shadow: -3px 0px 0px -1px var(--b3-protyle-inline-mark-background) inset;

View file

@ -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下图标+8padding+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") &&