mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
9cb1ea89da
commit
ee66b716e8
1 changed files with 2 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ bottom: 82px;`);
|
||||||
} else if (this.position === "Right") {
|
} else if (this.position === "Right") {
|
||||||
this.layout.element.setAttribute("style", `width:${this.layout.element.clientWidth}px;
|
this.layout.element.setAttribute("style", `width:${this.layout.element.clientWidth}px;
|
||||||
opacity: ${hasActive ? 1 : 0};
|
opacity: ${hasActive ? 1 : 0};
|
||||||
"right":${this.element.clientWidth}px;
|
right:${this.element.clientWidth}px;
|
||||||
top: ${document.getElementById("toolbar").offsetHeight + document.getElementById("dockTop").offsetHeight}px;
|
top: ${document.getElementById("toolbar").offsetHeight + document.getElementById("dockTop").offsetHeight}px;
|
||||||
bottom: ${document.getElementById("status").offsetHeight + document.getElementById("dockBottom").offsetHeight}px;`);
|
bottom: ${document.getElementById("status").offsetHeight + document.getElementById("dockBottom").offsetHeight}px;`);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -113,7 +113,6 @@ ${this.position === "Top" ? ("top:" + (this.element.offsetHeight + document.getE
|
||||||
}
|
}
|
||||||
target.setAttribute("aria-label", window.siyuan.languages.pin);
|
target.setAttribute("aria-label", window.siyuan.languages.pin);
|
||||||
this.resizeElement.classList.add("fn__none");
|
this.resizeElement.classList.add("fn__none");
|
||||||
resizeTabs();
|
|
||||||
} else {
|
} else {
|
||||||
target.setAttribute("aria-label", window.siyuan.languages.unpin);
|
target.setAttribute("aria-label", window.siyuan.languages.unpin);
|
||||||
this.layout.element.style.opacity = "";
|
this.layout.element.style.opacity = "";
|
||||||
|
|
@ -124,6 +123,7 @@ ${this.position === "Top" ? ("top:" + (this.element.offsetHeight + document.getE
|
||||||
}
|
}
|
||||||
target.classList.toggle("dock__item--pin");
|
target.classList.toggle("dock__item--pin");
|
||||||
this.layout.element.classList.toggle("layout--float");
|
this.layout.element.classList.toggle("layout--float");
|
||||||
|
resizeTabs();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue