mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 20:25:17 +01:00
🚨
This commit is contained in:
parent
e59c630bac
commit
6ad89c12c1
9 changed files with 35 additions and 35 deletions
|
|
@ -103,8 +103,8 @@ export const globalShortcut = () => {
|
|||
if (!hasClosestByClassName(event.target as HTMLElement, "b3-menu") &&
|
||||
!hasClosestByClassName(event.target as HTMLElement, "layout--float") &&
|
||||
window.siyuan.layout.leftDock.layout.element.style.opacity !== "1") {
|
||||
window.siyuan.layout.leftDock.layout.element.style.left = (window.siyuan.layout.leftDock.element.clientWidth + .5) + "px"
|
||||
window.siyuan.layout.leftDock.layout.element.style.opacity = "1"
|
||||
window.siyuan.layout.leftDock.layout.element.style.left = (window.siyuan.layout.leftDock.element.clientWidth + .5) + "px";
|
||||
window.siyuan.layout.leftDock.layout.element.style.opacity = "1";
|
||||
}
|
||||
} else {
|
||||
window.siyuan.layout.leftDock.hideDock();
|
||||
|
|
@ -115,8 +115,8 @@ export const globalShortcut = () => {
|
|||
if (event.clientY > document.getElementById("toolbar").clientHeight + document.getElementById("dockTop").clientHeight &&
|
||||
event.clientY < window.innerHeight - document.getElementById("status").clientHeight - document.getElementById("dockBottom").clientHeight) {
|
||||
if (!hasClosestByClassName(event.target as HTMLElement, "layout--float") && window.siyuan.layout.rightDock.layout.element.style.opacity !== "1") {
|
||||
window.siyuan.layout.rightDock.layout.element.style.right = (window.siyuan.layout.rightDock.element.clientWidth + .5) + "px"
|
||||
window.siyuan.layout.rightDock.layout.element.style.opacity = "1"
|
||||
window.siyuan.layout.rightDock.layout.element.style.right = (window.siyuan.layout.rightDock.element.clientWidth + .5) + "px";
|
||||
window.siyuan.layout.rightDock.layout.element.style.opacity = "1";
|
||||
}
|
||||
} else {
|
||||
window.siyuan.layout.rightDock.hideDock();
|
||||
|
|
@ -126,13 +126,13 @@ export const globalShortcut = () => {
|
|||
|
||||
if (event.clientY < 75) {
|
||||
if (!window.siyuan.layout.topDock.pin && window.siyuan.layout.topDock.layout.element.style.opacity !== "1") {
|
||||
window.siyuan.layout.topDock.layout.element.style.top = (document.getElementById("dockTop").clientHeight + document.getElementById("toolbar").clientHeight + 1) + "px"
|
||||
window.siyuan.layout.topDock.layout.element.style.opacity = "1"
|
||||
window.siyuan.layout.topDock.layout.element.style.top = (document.getElementById("dockTop").clientHeight + document.getElementById("toolbar").clientHeight + 1) + "px";
|
||||
window.siyuan.layout.topDock.layout.element.style.opacity = "1";
|
||||
}
|
||||
} else if (event.clientY > window.innerHeight - 73) {
|
||||
if (!window.siyuan.layout.bottomDock.pin && window.siyuan.layout.bottomDock.layout.element.style.opacity !== "1") {
|
||||
window.siyuan.layout.bottomDock.layout.element.style.bottom = (document.getElementById("dockBottom").clientHeight + document.getElementById("status").clientHeight + 1) + "px"
|
||||
window.siyuan.layout.bottomDock.layout.element.style.opacity = "1"
|
||||
window.siyuan.layout.bottomDock.layout.element.style.bottom = (document.getElementById("dockBottom").clientHeight + document.getElementById("status").clientHeight + 1) + "px";
|
||||
window.siyuan.layout.bottomDock.layout.element.style.opacity = "1";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue