From 3c0be0faaa598cf7c8d227a2deba94377ed28f4b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 14 Aug 2022 13:15:32 +0800 Subject: [PATCH] :lipstick: fix https://github.com/siyuan-note/siyuan/issues/5623 --- app/src/protyle/gutter/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 5313d461d..44bef7eff 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -1498,7 +1498,7 @@ export class Gutter { (rect.height > Math.floor(window.siyuan.config.editor.fontSize * 1.625) + 8 && rect.height < Math.floor(window.siyuan.config.editor.fontSize * 1.625) * 2 + 8)) { marginHeight = (rect.height - this.element.clientHeight) / 2; } - this.element.style.top = `${Math.max(rect.top, wysiwyg.parentElement.getBoundingClientRect().top + 16) + marginHeight}px`; + this.element.style.top = `${Math.max(rect.top, wysiwyg.parentElement.getBoundingClientRect().top) + marginHeight}px`; let left = rect.left - this.element.clientWidth - space; if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed" && this.element.childElementCount === 1) { // 嵌入块为列表时