mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
ff91a58747
commit
b480d497f3
8 changed files with 48 additions and 21 deletions
|
|
@ -476,7 +476,6 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
|
|||
} else {
|
||||
onGet(getResponse, protyle, id === protyle.block.rootID ? [Constants.CB_GET_FOCUS, Constants.CB_GET_HTML, Constants.CB_GET_UNUNDO] : [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS, Constants.CB_GET_UNUNDO, Constants.CB_GET_HTML]);
|
||||
}
|
||||
updateTitle(undefined, id !== protyle.block.rootID);
|
||||
// https://github.com/siyuan-note/siyuan/issues/4874
|
||||
if (focusId) {
|
||||
const focusElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${focusId}"]`);
|
||||
|
|
@ -497,6 +496,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
|
|||
/// #if !MOBILE
|
||||
if (protyle.model) {
|
||||
updateBacklinkGraph(getAllModels(), protyle);
|
||||
updateTitle(undefined, id !== protyle.block.rootID, protyle.model.parent.headElement.getAttribute("data-id"));
|
||||
}
|
||||
/// #endif
|
||||
if (callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue