Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/18111

Vanessa8d33ebb2a465
diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts
index 26a84a7757..01f583d5c7 100644
--- a/app/src/layout/dock/Graph.ts
+++ b/app/src/layout/dock/Graph.ts
@@ -287,15 +287,17 @@ export class Graph extends Model {
} else if (dataType === "refresh") {
this.searchGraph(false, undefined, true);
} else if (dataType === "fullscreen") {
- const minElement = this.element.querySelector('.block__icons .block__icon[data-type="min"]');
+ fullscreen(this.element, target);
+ const minElement = this.element.querySelector('.block__icons .block__icon[data-type="min"]') as HTMLElement;
if (this.element.className.includes("fullscreen")) {
+ minElement.style.transition = "none";
minElement.classList.add("fn__none");
minElement.previousElementSibling.classList.add("fn__none");
} else {
+ minElement.style.transition = "";
minElement.classList.remove("fn__none");
minElement.previousElementSibling.classList.remove("fn__none");
}
- fullscreen(this.element, target);
}
break;
} else if (target.classList.contains("graph__svg")) {