mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
💄 防止右侧分屏后,左侧页签抖动
This commit is contained in:
parent
7151e6d486
commit
48933edf55
2 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ export const setPadding = (protyle: IProtyle) => {
|
|||
min16 = 96
|
||||
min24 = 96
|
||||
}
|
||||
if (!window.siyuan.config.editor.fullWidth) {
|
||||
// 防止右侧分屏后,左侧页签抖动
|
||||
protyle.wysiwyg.element.style.width = (protyle.element.clientWidth - 10) + "px";
|
||||
}
|
||||
}
|
||||
if (protyle.options.render.background && protyle.options.render.title) {
|
||||
protyle.background.element.lastElementChild.setAttribute("style", `left:${min16}px`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue