An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: layout
Vanessa647d830a3f8b
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.tsindex 36fbb834a3..e09017af26 100644--- a/app/src/layout/Wnd.ts+++ b/app/src/layout/Wnd.ts@@ -1009,7 +1009,11 @@ export class Wnd {this.parent.addLayout(layout, item.id, after);const movedWnd = this.parent.children.splice(after ? index : index + 1, 1)[0];if (movedWnd.resize) {- movedWnd.element.previousElementSibling.remove();+ if (movedWnd.element.previousElementSibling && movedWnd.element.previousElementSibling.classList.contains("layout__resize")) {+ movedWnd.element.previousElementSibling.remove();+ } else if (movedWnd.element.nextElementSibling && movedWnd.element.nextElementSibling.classList.contains("layout__resize")) {+ movedWnd.element.nextElementSibling.remove();+ }movedWnd.resize = undefined;}if (after) {diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex f6c0feaa5d..b8b3b4db76 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -864,7 +864,8 @@ export const addResize = (obj: Layout | Wnd, after = true) => {}resizeElement.classList.add("layout__resize");if (after) {- obj.element.insertAdjacentElement("beforebegin", resizeElement);+ obj.element.insertAdjacentElement((obj.element.previousElementSibling && !obj.element.previousElementSibling.classList.contains("layout__resize")) ?+ "beforebegin" : "afterend", resizeElement);} else {obj.element.insertAdjacentElement("afterend", resizeElement);}