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

Vanessa1a77853f4c23
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 52c83cb9d9..3cf08f19c7 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -442,7 +442,8 @@ export class Gutter {
private isMatchNode(item: Element) {
const itemRect = item.getBoundingClientRect();
- let gutterTop = this.element.getBoundingClientRect().top + 4;
+ // 原本为4,由于 https://github.com/siyuan-note/siyuan/issues/12166 改为 6
+ let gutterTop = this.element.getBoundingClientRect().top + 6;
if (itemRect.height < Math.floor(window.siyuan.config.editor.fontSize * 1.625) + 8) {
gutterTop = gutterTop - (itemRect.height - this.element.clientHeight) / 2;
}