mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
eb71bd2083
commit
a618d53d5f
1 changed files with 4 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
|
||||||
pushBack();
|
pushBack();
|
||||||
}
|
}
|
||||||
} else if (protyle.breadcrumb) {
|
} else 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) {
|
||||||
exitFocusElement.classList.add("fn__none");
|
exitFocusElement.classList.add("fn__none");
|
||||||
exitFocusElement.nextElementSibling.classList.add("fn__none");
|
exitFocusElement.nextElementSibling.classList.add("fn__none");
|
||||||
|
|
@ -1435,6 +1435,9 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
|
||||||
focusBlock(nodeElement, undefined, false);
|
focusBlock(nodeElement, undefined, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nodeElement.querySelectorAll(".img--select").forEach((item) => {
|
||||||
|
item.classList.remove("img--select");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
const id = nodeElement.getAttribute("data-node-id");
|
const id = nodeElement.getAttribute("data-node-id");
|
||||||
if (nodeElement.getAttribute("data-type") === "NodeHeading") {
|
if (nodeElement.getAttribute("data-type") === "NodeHeading") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue