From e5ebab88940b7146d4610975e5262cd5891c4359 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 16 Dec 2024 17:35:31 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=8F=B3=E9=94=AE=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=A0=91=E8=8F=9C=E5=8D=95=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=B5=AE=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/block/popover.ts | 2 +- app/src/menus/navigation.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index ec97c8ade..663dd1e76 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -211,7 +211,7 @@ const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => { } else { // 浮窗上点击菜单,浮窗不能消失 https://ld246.com/article/1632668091023 const menuElement = hasClosestByClassName(target, "b3-menu"); - if (menuElement) { + if (menuElement && menuElement.getAttribute("data-name") !== "docTreeMore") { const blockPanel = window.siyuan.blockPanels.find((item) => { if (item.element.style.zIndex < menuElement.style.zIndex) { return true; diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts index 05149c5b0..6a0509c02 100644 --- a/app/src/menus/navigation.ts +++ b/app/src/menus/navigation.ts @@ -705,6 +705,7 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l separatorPosition: "top", }); } + window.siyuan.menus.menu.element.setAttribute("data-name", "docTreeMore"); return window.siyuan.menus.menu; };