An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: fix https://github.com/siyuan-note/siyuan/issues/8785
Vanessa11c6ef6f6adc
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 2b63ef67be..283e88358e 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -743,6 +743,9 @@ export class Gutter {}public renderMenu(protyle: IProtyle, buttonElement: Element) {+ if (!buttonElement) {+ return+ }hideElements(["util", "toolbar", "hint"], protyle);window.siyuan.menus.menu.remove();if (isMobile()) {diff --git a/app/src/protyle/render/blockRender.ts b/app/src/protyle/render/blockRender.tsindex e8c2d7b984..e6e51fc6b1 100644--- a/app/src/protyle/render/blockRender.ts+++ b/app/src/protyle/render/blockRender.ts@@ -25,9 +25,9 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =item.setAttribute("data-render", "true");item.style.height = (item.clientHeight - 8) + "px"; // 减少抖动 https://ld246.com/article/1668669380171item.innerHTML = `<div class="protyle-icons${hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed") ? " fn__none" : ""}">- <span class="protyle-icon protyle-action__reload protyle-icon--first"><svg class="fn__rotate"><use xlink:href="#iconRefresh"></use></svg></span>- <span class="protyle-icon protyle-action__edit"><svg><use xlink:href="#iconEdit"></use></svg></span>- <span class="protyle-icon protyle-action__menu protyle-icon--last"><svg><use xlink:href="#iconMore"></use></svg></span>+ <span aria-label="${window.siyuan.languages.refresh}" class="b3-tooltips__n b3-tooltips protyle-icon protyle-action__reload protyle-icon--first"><svg class="fn__rotate"><use xlink:href="#iconRefresh"></use></svg></span>+ <span aria-label="${window.siyuan.languages.update} SQL" class="b3-tooltips__n b3-tooltips protyle-icon protyle-action__edit"><svg><use xlink:href="#iconEdit"></use></svg></span>+ <span aria-label="${window.siyuan.languages.more}" class="b3-tooltips__n b3-tooltips protyle-icon protyle-action__menu protyle-icon--last"><svg><use xlink:href="#iconMore"></use></svg></span></div>${item.lastElementChild.outerHTML}`;const content = Lute.UnEscapeHTMLStr(item.getAttribute("data-content"));let breadcrumb: boolean | string = item.getAttribute("breadcrumb");