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/10506

Vanessa18c6743b95eb
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index d54279dbc4..1e3d64ee83 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -818,15 +818,17 @@ export const addResize = (obj: Layout | Wnd) => {
return;
}
if (window.siyuan.layout.leftDock?.layout.element.isSameNode(previousElement) &&
- previousNowSize < getMinSize(previousElement)) {
+ previousNowSize < getMinSize(previousElement) &&
+ // https://github.com/siyuan-note/siyuan/issues/10506
+ previousNowSize < previousSize) {
return;
}
if (window.siyuan.layout.rightDock?.layout.element.isSameNode(nextElement) &&
- nextNowSize < getMinSize(nextElement)) {
+ nextNowSize < getMinSize(nextElement) && nextNowSize < nextSize) {
return;
}
if (window.siyuan.layout.bottomDock?.layout.element.isSameNode(nextElement) &&
- nextNowSize < 64) {
+ nextNowSize < 64 && nextNowSize < nextSize) {
return;
}
if (!previousElement.classList.contains("fn__flex-1")) {