mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 18:30:16 +01:00
This commit is contained in:
parent
7a366efc8a
commit
6ad42a4556
1 changed files with 9 additions and 0 deletions
|
|
@ -949,6 +949,15 @@ export const zoomOut = (options: {
|
|||
if (typeof options.reload === "undefined") {
|
||||
options.reload = false;
|
||||
}
|
||||
const blockPanelElement = hasClosestByClassName(options.protyle.element, "block__popover", true);
|
||||
if (blockPanelElement) {
|
||||
const pingElement = blockPanelElement.querySelector('[data-type="pin"]');
|
||||
if (pingElement && blockPanelElement.getAttribute("data-pin") !== "true") {
|
||||
pingElement.setAttribute("aria-label", window.siyuan.languages.unpin);
|
||||
pingElement.querySelector("use").setAttribute("xlink:href", "#iconUnpin");
|
||||
blockPanelElement.setAttribute("data-pin", "true");
|
||||
}
|
||||
}
|
||||
const breadcrumbHLElement = options.protyle.breadcrumb?.element.querySelector(".protyle-breadcrumb__item--active");
|
||||
if (!options.reload && breadcrumbHLElement && breadcrumbHLElement.getAttribute("data-node-id") === options.id) {
|
||||
if (options.id === options.protyle.block.rootID) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue