This commit is contained in:
Vanessa 2023-11-27 12:01:23 +08:00
parent e0cc6ef05b
commit 9e993152ab
2 changed files with 2 additions and 1 deletions

View file

@ -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();
}
}

View file

@ -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");