Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/11774

Vanessac5b323c39180
diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts
index 0a372c1d6f..3d88744857 100644
--- a/app/src/layout/dock/Graph.ts
+++ b/app/src/layout/dock/Graph.ts
@@ -322,6 +322,12 @@ export class Graph extends Model {
this.searchGraph(false, undefined, true);
} else if (dataType === "fullscreen") {
fullscreen(this.element, target);
+ const minElement = this.element.querySelector('.block__icons .block__icon[data-type="min"]')
+ if (this.element.className.includes("fullscreen")) {
+ minElement.classList.add("fn__none")
+ } else {
+ minElement.classList.remove("fn__none")
+ }
}
break;
} else if (target.classList.contains("graph__svg")) {