Vanessa 2024-10-29 12:08:37 +08:00
parent 3110b3e1fb
commit 63badb1c74
6 changed files with 10 additions and 6 deletions

View file

@ -195,7 +195,7 @@ export class BlockPanel {
}
// 由于 afterCB 中高度的设定,需在之后再进行设定
// 49 = 16上图标+16下图标+8padding+9底部距离
editor.protyle.scroll.element.parentElement.setAttribute("style", `--b3-dynamicscroll-width:${Math.min(editor.protyle.contentElement.clientHeight - 49, 200)}px;${isMobile() ? "" : "right:10px"}`);
editor.protyle.scroll.element.parentElement.setAttribute("style", `--b3-dynamicscroll-width:${Math.min(editor.protyle.contentElement.clientHeight - 49, 200)}px;`);
}
});
this.editors.push(editor);