An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: fix https://github.com/siyuan-note/siyuan/issues/7600
Vanessae1569cf1ea60
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.tsindex 4022eb07d3..1cf5088bea 100644--- a/app/src/menus/Menu.ts+++ b/app/src/menus/Menu.ts@@ -16,7 +16,7 @@ export class Menu {const target = event.target as Element;if (isMobile()) {const titleElement = hasClosestByClassName(target, "b3-menu__title");- if (titleElement) {+ if (titleElement || (typeof event.detail === "string" && event.detail === "back")) {const lastShowElements = this.element.querySelectorAll(".b3-menu__item--show");if (lastShowElements.length > 0) {lastShowElements[lastShowElements.length - 1].classList.remove("b3-menu__item--show");diff --git a/app/src/mobile/util/MobileBackFoward.ts b/app/src/mobile/util/MobileBackFoward.tsindex f7a2a67ae0..12aba4a047 100644--- a/app/src/mobile/util/MobileBackFoward.ts+++ b/app/src/mobile/util/MobileBackFoward.ts@@ -109,9 +109,14 @@ export const goForward = () => {};export const goBack = () => {- if (window.JSAndroid && window.siyuan.backStack.length < 1) {- window.JSAndroid.returnDesktop();- return;+ if (window.JSAndroid) {+ if (window.siyuan.menus.menu.element.classList.contains("b3-menu--fullscreen") && !window.siyuan.menus.menu.element.classList.contains("fn__none")) {+ window.siyuan.menus.menu.element.dispatchEvent(new CustomEvent("click", {detail: "back"}))+ return;+ } else if (window.siyuan.backStack.length < 1) {+ window.JSAndroid.returnDesktop();+ return;+ }}if (window.siyuan.backStack.length < 1) {return;