mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
This commit is contained in:
parent
83a8b11277
commit
c6538f8732
1 changed files with 4 additions and 1 deletions
|
|
@ -1,11 +1,14 @@
|
|||
import {activeBlur} from "./keyboardToolbar";
|
||||
import {Constants} from "../../constants";
|
||||
|
||||
export const closePanel = () => {
|
||||
document.getElementById("menu").style.transform = "";
|
||||
document.getElementById("sidebar").style.transform = "";
|
||||
document.getElementById("model").style.transform = "";
|
||||
const maskElement = document.querySelector(".side-mask") as HTMLElement;
|
||||
maskElement.classList.add("fn__none");
|
||||
setTimeout(() => {
|
||||
maskElement.classList.add("fn__none");
|
||||
}, Constants.TIMEOUT_TRANSITION);
|
||||
maskElement.style.opacity = "";
|
||||
window.siyuan.menus.menu.remove();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue