An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5510
Vanessa4ccdc53dc545
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.tsindex 369c1af3dd..af30418715 100644--- a/app/src/menus/Menu.ts+++ b/app/src/menus/Menu.ts@@ -33,9 +33,13 @@ export class Menu {itemElement.classList.add("b3-menu__item--show");const rect = subMenuElement.getBoundingClientRect();let style = "";- if (rect.right > window.innerWidth && (rect.left - this.element.clientWidth - rect.width > 0 ||- Math.abs(rect.left - this.element.clientWidth - rect.width) < (rect.right - window.innerWidth))) {- style = "left:auto;right:100%;";+ const leftPosition = rect.left - this.element.clientWidth - rect.width+ if (rect.right > window.innerWidth && Math.abs(leftPosition) < (rect.right - window.innerWidth)) {+ if (leftPosition >= 0) {+ style = "left:auto;right:100%;";+ } else {+ style = `z-index:1;mix-blend-mode: normal;left:-${this.element.style.left};`;+ }} else if (rect.right > window.innerWidth) {style = `z-index:1;mix-blend-mode: normal;left:${window.innerWidth - rect.width}px;`;}