瀏覽代碼

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

Vanessa 1 年之前
父節點
當前提交
c5b323c391
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/src/layout/dock/Graph.ts

+ 6 - 0
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")) {