From 0c24f6d39da906a36e89462700b880ee2a817e18 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 21 Mar 2023 11:25:38 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/7730 --- app/src/menus/protyle.ts | 2 ++ app/src/mobile/editor.ts | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index d906456a9..e15740665 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -451,6 +451,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB pushBack(); } } + /// #if !MOBILE if (protyle.breadcrumb) { const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]'); if (id === protyle.block.rootID) { @@ -461,6 +462,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB exitFocusElement.nextElementSibling.classList.remove("fn__none"); } } + /// #endif fetchPost("/api/filetree/getDoc", { id, size: id === protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX, diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts index 575f2d5ce..eda2742d2 100644 --- a/app/src/mobile/editor.ts +++ b/app/src/mobile/editor.ts @@ -53,14 +53,6 @@ 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 {