From 800286ebce9f56eef3dfc902ba6d9e09d94bb145 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 30 Sep 2024 10:57:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12425 --- app/src/protyle/header/Background.ts | 6 ------ app/src/protyle/util/onGet.ts | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index 07cdad7d7..ca5a7a4cf 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -416,12 +416,6 @@ export class Background { target = target.parentElement; } }); - - /// #if MOBILE - if (!protyle.disabled) { - this.element.classList.add("protyle-background--mobileshow"); - } - /// #endif } private removeTag(protyle: IProtyle) { diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index d1fda5ad9..c882af144 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -249,6 +249,12 @@ const setHTML = (options: { return; } + /// #if MOBILE + if (!protyle.disabled && !options.action.includes(Constants.CB_GET_ALL)) { + protyle.background.element.classList.add("protyle-background--mobileshow"); + } + /// #endif + if (protyle.options.render.breadcrumb) { protyle.breadcrumb.toggleExit(!options.action.includes(Constants.CB_GET_ALL)); protyle.breadcrumb.render(protyle);