Skip to content

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

:recycle: https://github.com/siyuan-note/siyuan/issues/7431

Vanessab434b779bbc0
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 738e3abd73..5f6cd05906 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -681,11 +681,11 @@ export const addResize = (obj: Layout | Wnd) => {
if (previousNowSize < 8 || nextNowSize < 8) {
return;
}
- if (window.siyuan.layout.leftDock?.layout.element.contains(previousElement) &&
+ if (window.siyuan.layout.leftDock?.layout.element.isSameNode(previousElement) &&
previousNowSize < getMinSize(previousElement)) {
return;
}
- if (window.siyuan.layout.rightDock?.layout.element.contains(nextElement) &&
+ if (window.siyuan.layout.rightDock?.layout.element.isSameNode(nextElement) &&
nextNowSize < getMinSize(nextElement)) {
return;
}