Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Anchor breadcrumb context menus to path items https://github.com/siyuan-note/siyuan/issues/19269

Daniel28f15b1533e6
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 5eab3deb63..f797574250 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -259,9 +259,11 @@ ${padHTML}
}
event.preventDefault();
event.stopPropagation();
+ const itemRect = itemElement.getBoundingClientRect();
this.openChildrenMenu(protyle, itemElement.getAttribute("data-node-id"), {
- x: event.clientX,
- y: event.clientY,
+ x: itemRect.left,
+ y: itemRect.bottom,
+ h: itemRect.height,
isLeft: false,
});
});