Vanessa 2022-09-30 10:39:35 +08:00
parent d1e67e055b
commit b699e98a79
2 changed files with 60 additions and 55 deletions

View file

@ -92,7 +92,11 @@ export const setPadding = (protyle: IProtyle) => {
bottomHeight = protyle.element.clientHeight / 2 + "px";
}
}
protyle.wysiwyg.element.style.padding = `16px ${min16}px ${bottomHeight} ${min24}px`;
if (protyle.options.backlinkData) {
protyle.wysiwyg.element.style.padding = `4px ${min16}px 4px ${min24}px`;
} else {
protyle.wysiwyg.element.style.padding = `16px ${min16}px ${bottomHeight} ${min24}px`;
}
if (!isMobile()) {
// 防止右侧分屏后左侧页签抖动10 为滚动条宽度
if (!window.siyuan.config.editor.fullWidth) {