mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 12:30:27 +08:00
💄 防止右侧分屏后,左侧页签抖动
This commit is contained in:
parent
7151e6d486
commit
48933edf55
@ -2,6 +2,7 @@
|
|||||||
padding: 34px 16px 16px 24px;
|
padding: 34px 16px 16px 24px;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
transition: padding .15s cubic-bezier(0, 0, .2, 1) 0ms;
|
transition: padding .15s cubic-bezier(0, 0, .2, 1) 0ms;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@ -58,6 +58,10 @@ export const setPadding = (protyle: IProtyle) => {
|
|||||||
min16 = 96
|
min16 = 96
|
||||||
min24 = 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) {
|
if (protyle.options.render.background && protyle.options.render.title) {
|
||||||
protyle.background.element.lastElementChild.setAttribute("style", `left:${min16}px`);
|
protyle.background.element.lastElementChild.setAttribute("style", `left:${min16}px`);
|
||||||
|
Loading…
Reference in New Issue
Block a user