Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14278

Vanessa6ad42a4556c9
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 85d6ebad93..218f12b0e1 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -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) {