Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: 防止右侧分屏后,左侧页签抖动

Vanessa48933edf558e
diff --git a/app/src/assets/scss/_wysiwyg.scss b/app/src/assets/scss/_wysiwyg.scss
index 4930fc43fc..69e0cc3f32 100644
--- a/app/src/assets/scss/_wysiwyg.scss
+++ b/app/src/assets/scss/_wysiwyg.scss
@@ -2,6 +2,7 @@
padding: 34px 16px 16px 24px;
cursor: text;
transition: padding .15s cubic-bezier(0, 0, .2, 1) 0ms;
+ box-sizing: border-box;
&:focus {
outline: none;
diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts
index d04342486a..f320a64808 100644
--- a/app/src/protyle/ui/initUI.ts
+++ b/app/src/protyle/ui/initUI.ts
@@ -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`);