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

Vanessab235eb24adb1
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 41e9c595bf..2ac54380f5 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -248,7 +248,7 @@ export class Wnd {
newWnd.headersElement.append(oldTab.headElement);
newWnd.moveTab(oldTab);
- if (dragElement.style.bottom === "auto" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
+ if (dragElement.style.bottom === "50%" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
// 交换位置
switchWnd(newWnd, targetWnd);
}
@@ -258,7 +258,7 @@ export class Wnd {
newWnd.headersElement.append(oldTab.headElement);
newWnd.moveTab(oldTab);
- if (dragElement.style.right === "auto" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
+ if (dragElement.style.right === "50%" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
// 交换位置
switchWnd(newWnd, targetWnd);
}