Skip to content

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

:art: 右侧面板移动到其它侧再移回来宽度过小

Vanessac237149a88d4
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index ee78b47677..138575b147 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -525,7 +525,7 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh
this.element.querySelectorAll(".dock__item--active").forEach((item) => {
let size;
if (this.position === "Left" || this.position === "Right") {
- size = parseInt(item.getAttribute("data-width")) || 240;
+ size = parseInt(item.getAttribute("data-width")) || (["graph", "globalGraph", "backlink"].includes(item.getAttribute("data-type")) ? 320 : 240);
} else {
size = parseInt(item.getAttribute("data-height")) || 240;
}