mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
d1e67e055b
commit
b699e98a79
2 changed files with 60 additions and 55 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue