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/9127
Vanessa99e4614dc237
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.tsindex cc0b39bdc0..e01a823f10 100644--- a/app/src/protyle/header/Background.ts+++ b/app/src/protyle/header/Background.ts@@ -1,5 +1,5 @@import {hasClosestByClassName} from "../util/hasClosest";-import {getRandom, isMobile} from "../../util/functions";+import {getRandom, isMobile, isTouchDevice} from "../../util/functions";import {hideElements} from "../ui/hideElements";import {uploadFiles} from "../upload";import {fetchPost} from "../../util/fetch";@@ -52,7 +52,7 @@ export class Background {this.tagsElement = this.element.querySelector(".b3-chips") as HTMLElement;this.iconElement = this.element.querySelector(".protyle-background__icon") as HTMLElement;this.imgElement = this.element.firstElementChild.firstElementChild as HTMLImageElement;- if (isMobile()) {+ if (isTouchDevice()) {this.imgElement.addEventListener("touchstart", (event: TouchEvent & { target: HTMLElement }) => {event.preventDefault();if (!this.element.firstElementChild.querySelector(".protyle-icons").classList.contains("fn__none")) {