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/15960

Vanessab29a487366e0
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 1ee9b6f230..6db19a6bc0 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -761,6 +761,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
return;
}
}
+ const hasGhost = item.querySelector('[data-type="ghost"]');
avRender(item, protyle, () => {
const attrElement = document.querySelector(`.b3-dialog--open[data-key="${Constants.DIALOG_ATTR}"] .custom-attr > [data-av-id="${avID}"]`) as HTMLElement;
if (attrElement) {
@@ -791,7 +792,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
}
if (popCellElement && popCellElement.getAttribute("data-detached") === "true" &&
popCellElement.querySelector(".av__celltext").textContent === "" &&
- popCellElement.getBoundingClientRect().height !== 0) {
+ popCellElement.getBoundingClientRect().height !== 0 && hasGhost) {
popTextCell(protyle, [popCellElement], "block");
}
}