mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +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") {
|
||||
this.layout.element.setAttribute("style", `width:${this.layout.element.clientWidth}px;
|
||||
opacity: ${hasActive ? 1 : 0};
|
||||
"right":${this.element.clientWidth}px;
|
||||
right:${this.element.clientWidth}px;
|
||||
top: ${document.getElementById("toolbar").offsetHeight + document.getElementById("dockTop").offsetHeight}px;
|
||||
bottom: ${document.getElementById("status").offsetHeight + document.getElementById("dockBottom").offsetHeight}px;`);
|
||||
} else {
|
||||
|
|
@ -113,7 +113,6 @@ ${this.position === "Top" ? ("top:" + (this.element.offsetHeight + document.getE
|
|||
}
|
||||
target.setAttribute("aria-label", window.siyuan.languages.pin);
|
||||
this.resizeElement.classList.add("fn__none");
|
||||
resizeTabs();
|
||||
} else {
|
||||
target.setAttribute("aria-label", window.siyuan.languages.unpin);
|
||||
this.layout.element.style.opacity = "";
|
||||
|
|
@ -124,6 +123,7 @@ ${this.position === "Top" ? ("top:" + (this.element.offsetHeight + document.getE
|
|||
}
|
||||
target.classList.toggle("dock__item--pin");
|
||||
this.layout.element.classList.toggle("layout--float");
|
||||
resizeTabs();
|
||||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue