From 6be604cd8533f4a2f6cfbe4c5008c7bc4207e8c0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 12 Oct 2022 15:47:40 +0800 Subject: [PATCH] :lipstick: fix https://github.com/siyuan-note/siyuan/issues/6161 --- app/src/dialog/tooltip.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index 76659ea07..7af933c8a 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -17,6 +17,9 @@ export const showTooltip = (message: string, target: Element) => { } else { messageElement.innerHTML = message; } + if(target.getAttribute("data-inline-memo-content")) { + messageElement.classList.add("tooltip--memo"); // 为行级备注添加 class https://github.com/siyuan-note/siyuan/issues/6161 + } let left = targetRect.left; const position = target.getAttribute("data-position"); if (position === "right") {