This commit is contained in:
parent
e0cc6ef05b
commit
9e993152ab
2 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,7 @@ export const windowMouseMove = (event: MouseEvent & { target: HTMLElement }, mou
|
|||
}
|
||||
}
|
||||
|
||||
if (event.clientY > window.innerHeight - 73) {
|
||||
if (event.clientY > window.innerHeight - (window.siyuan.config.uiLayout.hideDock ? 42 : 73)) {
|
||||
window.siyuan.layout.bottomDock.showDock();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -183,6 +183,7 @@ export const toggleDockBar = (useElement: Element) => {
|
|||
} else {
|
||||
useElement.setAttribute("xlink:href", "#iconHideDock");
|
||||
}
|
||||
window.siyuan.config.uiLayout.hideDock = dockIsShow;
|
||||
document.querySelectorAll(".dock").forEach(item => {
|
||||
if (dockIsShow) {
|
||||
item.classList.add("fn__none");
|
||||
|
|
Loading…
Add table
Reference in a new issue