From 3f9e6d0eaa22765b064b142ccec6a0d21d9ece19 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 21 Oct 2025 12:21:47 +0800 Subject: [PATCH] :art: Clicking the doc icon in the doc tree will expand on mobile https://github.com/siyuan-note/siyuan/issues/16163 Signed-off-by: Daniel <845765@qq.com> --- app/src/mobile/dock/MobileFiles.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.ts index a3d70e579..82814985c 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")) {