ソースを参照

: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")) {