Explorar el Código

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

Vanessa hace 2 años
padre
commit
c237149a88
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/src/layout/dock/index.ts

+ 1 - 1
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) => {
         this.element.querySelectorAll(".dock__item--active").forEach((item) => {
             let size;
             let size;
             if (this.position === "Left" || this.position === "Right") {
             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 {
             } else {
                 size = parseInt(item.getAttribute("data-height")) || 240;
                 size = parseInt(item.getAttribute("data-height")) || 240;
             }
             }