mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
3c46f87fc5
commit
0c24f6d39d
@ -451,6 +451,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
|
|||||||
pushBack();
|
pushBack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// #if !MOBILE
|
||||||
if (protyle.breadcrumb) {
|
if (protyle.breadcrumb) {
|
||||||
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
|
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
|
||||||
if (id === protyle.block.rootID) {
|
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");
|
exitFocusElement.nextElementSibling.classList.remove("fn__none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// #endif
|
||||||
fetchPost("/api/filetree/getDoc", {
|
fetchPost("/api/filetree/getDoc", {
|
||||||
id,
|
id,
|
||||||
size: id === protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,
|
size: id === protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,
|
||||||
|
@ -53,14 +53,6 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||||||
}, getResponse => {
|
}, getResponse => {
|
||||||
onGet(getResponse, window.siyuan.mobile.editor.protyle, action);
|
onGet(getResponse, window.siyuan.mobile.editor.protyle, action);
|
||||||
window.siyuan.mobile.editor.protyle.breadcrumb?.render(window.siyuan.mobile.editor.protyle);
|
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();
|
window.siyuan.mobile.editor.protyle.undo.clear();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user