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

This commit is contained in:
Vanessa 2023-02-14 14:01:18 +08:00
parent 6000ef1c63
commit c237149a88

View file

@ -525,7 +525,7 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh
this.element.querySelectorAll(".dock__item--active").forEach((item) => {
let size;
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 {
size = parseInt(item.getAttribute("data-height")) || 240;
}