Skip to content

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

:art: Clicking the doc icon in the doc tree will expand on mobile https://github.com/siyuan-note/siyuan/issues/16163

Daniel3f9e6d0eaa22
diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.ts
index a3d70e5793..82814985ce 100644
--- a/app/src/mobile/dock/MobileFiles.ts
+++ b/app/src/mobile/dock/MobileFiles.ts
@@ -111,6 +111,9 @@ export class MobileFiles extends Model {
filesElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
let target = event.target as HTMLElement;
while (target && !target.isEqualNode(this.actionsElement)) {
+ if (target.classList.contains("b3-list-item__icon")) {
+ target = target.previousElementSibling as HTMLElement;
+ }
const type = target.getAttribute("data-type");
if (type === "refresh") {
if (!target.getAttribute("disabled")) {