mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
添加移动端点击自动关闭侧边栏 (#271)
This commit is contained in:
@ -134,3 +134,8 @@ export const parseHTMLToRawText = (htmlStr: string): string => {
|
||||
const text = tempEl.innerText;
|
||||
return text;
|
||||
};
|
||||
|
||||
export function closeSidebar() {
|
||||
const sidebarEl = document.body.querySelector(".sidebar-wrapper") as HTMLDivElement;
|
||||
sidebarEl.style.display = "none";
|
||||
}
|
||||
|
Reference in New Issue
Block a user