From 5ae6f7c93f43801981b9f7667c354bac64443cb6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 10 Nov 2023 10:27:15 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9620 block icon --- app/src/protyle/gutter/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 51a66808a..9b4f3432a 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -1906,7 +1906,8 @@ data-type="fold"> 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; - } else if (nodeElement.getAttribute("data-type") === "NodeAttributeView" && contentTop < rect.top) { + } else if ((nodeElement.getAttribute("data-type") === "NodeAttributeView" || + element.getAttribute("data-type") === "NodeAttributeView") && contentTop < rect.top) { marginHeight = 8; } this.element.style.top = `${Math.max(rect.top, contentTop) + marginHeight}px`; @@ -1914,8 +1915,6 @@ data-type="fold">