Skip to content

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

:lipstick: fix https://github.com/siyuan-note/siyuan/issues/10731

Vanessadf6ee063a372
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 83a2f96f72..9c7fa4c1d4 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2139,10 +2139,12 @@ data-type="fold"><svg style="width:10px${fold && fold === "1" ? "" : ";transform
}
this.element.style.top = `${Math.max(rect.top, contentTop) + marginHeight}px`;
let left = rect.left - this.element.clientWidth - space;
- if ((nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed" && this.element.childElementCount === 1) || // 嵌入块为列表时
- // 为数据库行
- element.classList.contains("av__row")) {
+ if ((nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed" && this.element.childElementCount === 1)) {
+ // 嵌入块为列表时
left = nodeElement.getBoundingClientRect().left - this.element.clientWidth - space;
+ } else if (element.classList.contains("av__row")) {
+ // 为数据库行
+ left = nodeElement.getBoundingClientRect().left - this.element.clientWidth - space + parseInt(getComputedStyle(nodeElement).paddingLeft);
}
this.element.style.left = `${left}px`;
if (left < this.element.parentElement.getBoundingClientRect().left) {