An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art:
Vanessac7cc5e6510b9
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.tsindex 9819273860..26514402c0 100644--- a/app/src/menus/Menu.ts+++ b/app/src/menus/Menu.ts@@ -56,14 +56,14 @@ export class Menu {}public showSubMenu(subMenuElement: HTMLElement) {- const parentRect = subMenuElement.parentElement.getBoundingClientRect();- subMenuElement.style.top = (parentRect.top - 8) + "px";- subMenuElement.style.left = (parentRect.right + 8) + "px";+ const itemRect = subMenuElement.parentElement.getBoundingClientRect();+ subMenuElement.style.top = (itemRect.top - 8) + "px";+ subMenuElement.style.left = (itemRect.right + 8) + "px";subMenuElement.style.bottom = "auto";const rect = subMenuElement.getBoundingClientRect();if (rect.right > window.innerWidth) {- if (parentRect.left - 8 > rect.width) {- subMenuElement.style.left = (parentRect.left - 8 - rect.width) + "px";+ if (itemRect.left - 8 > rect.width) {+ subMenuElement.style.left = (itemRect.left - 8 - rect.width) + "px";} else {subMenuElement.style.left = (window.innerWidth - rect.width) + "px";}diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex 267f2b1c61..ca15db2e9c 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -630,6 +630,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, cloevent.preventDefault();break;} else if (target.id === "searchFilter") {+ window.siyuan.menus.menu.remove();filterMenu(config, () => {config.page = 1;inputEvent(element, config, undefined, edit, true);