Skip to content

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

:bug: Restore mobile document header actions after unlocking https://github.com/siyuan-note/siyuan/issues/18396

Danielb9500850f0f4
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index adc76bc79c..b76cbb286c 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -334,8 +334,11 @@ const setHTML = (options: {
}
/// #if MOBILE
- if (!protyle.disabled && !options.action.includes(Constants.CB_GET_ALL) && protyle.background) {
- protyle.background.element.classList.add("protyle-background--mobileshow");
+ if (protyle.background) {
+ protyle.background.element.classList.toggle(
+ "protyle-background--mobileshow",
+ !options.action.includes(Constants.CB_GET_ALL)
+ );
}
/// #endif
@@ -428,7 +431,6 @@ export const disabledProtyle = (protyle: IProtyle) => {
/// #endif
if (protyle.background) {
protyle.background.element.classList.remove("protyle-background--enable");
- protyle.background.element.classList.remove("protyle-background--mobileshow");
}
disabledWYSIWYG(protyle.wysiwyg.element);
if (protyle.breadcrumb) {