Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5657

Vanessa18bdf3dbb033
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 6524d2454f..8e12557cce 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -681,7 +681,8 @@ export class Wnd {
}
previous.resize = undefined;
previous.element.classList.add("fn__flex-1");
- } else {
+ } else if (!previous.element.classList.contains("fn__flex-1")) {
+ // 分屏后要均分 https://github.com/siyuan-note/siyuan/issues/5657
if (layout.direction === "lr") {
previous.element.style.width = (previous.element.clientWidth + element.clientWidth) + "px";
} else {