Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7362

Vanessa408a4a7ff1c7
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts
index 5561a4c0a1..d73863ec48 100644
--- a/app/src/mobile/editor.ts
+++ b/app/src/mobile/editor.ts
@@ -59,6 +59,14 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
}, getResponse => {
onGet(getResponse, window.siyuan.mobile.editor.protyle, action);
window.siyuan.mobile.editor.protyle.breadcrumb?.render(window.siyuan.mobile.editor.protyle);
+ const exitFocusElement = window.siyuan.mobile.editor.protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
+ if (action.includes(Constants.CB_GET_ALL)) {
+ exitFocusElement.classList.remove("fn__none");
+ exitFocusElement.nextElementSibling.classList.remove("fn__none");
+ } else {
+ exitFocusElement.classList.add("fn__none");
+ exitFocusElement.nextElementSibling.classList.add("fn__none");
+ }
});
window.siyuan.mobile.editor.protyle.undo.clear();
} else {
diff --git a/app/src/mobile/util/MobileBookmarks.ts b/app/src/mobile/util/MobileBookmarks.ts
index 87c2cc86a6..59aab80ceb 100644
--- a/app/src/mobile/util/MobileBookmarks.ts
+++ b/app/src/mobile/util/MobileBookmarks.ts
@@ -83,7 +83,9 @@ export class MobileBookmarks {
});
}
} else {
- openMobileFileById(id, [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
+ fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {
+ openMobileFileById(id, foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SETID, Constants.CB_GET_CONTEXT, Constants.CB_GET_HTML]);
+ });
}
},
blockExtHTML: '<span class="b3-list-item__action" data-type="remove"><svg><use xlink:href="#iconTrashcan"></use></svg></span>',