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

Vanessae41adc4e728d
diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts
index 31953d74dd..18869077f7 100644
--- a/app/src/util/highlightById.ts
+++ b/app/src/util/highlightById.ts
@@ -52,8 +52,10 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal
return;
}
// undo 时禁止数据库滚动
- if (blockElement.classList.contains("av") && blockElement.dataset.render === "true" &&
- (blockElement.querySelector(".av__row--header").getAttribute("style")?.indexOf("transform") > -1 || blockElement.querySelector(".av__row--footer").getAttribute("style")?.indexOf("transform") > -1)) {
+ if (blockElement.classList.contains("av") && blockElement.dataset.render === "true" && (
+ blockElement.querySelector(".av__row--header")?.getAttribute("style")?.indexOf("transform") > -1 ||
+ blockElement.querySelector(".av__row--footer")?.getAttribute("style")?.indexOf("transform") > -1
+ )) {
return;
}
// 撤销时 br 插入删除会导致 rang 被修改 https://github.com/siyuan-note/siyuan/issues/12679