From 7b4ead5e8a0575bd377e06a3fdd3dcff43ff3fd4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 20 Jan 2024 00:18:54 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10142 --- app/src/dialog/tooltip.ts | 4 ++++ app/src/protyle/render/av/blockAttr.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index 245011137..7c4a6a891 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -39,6 +39,10 @@ export const showTooltip = (message: string, target: Element, error = false) => // file tree and outline、backlink top = parentRect.top; left = parentRect.right + 8; + } else if (position === "parentW") { + // 数据库属性视图 + top = parentRect.top + 8; + left = parentRect.left - messageElement.clientWidth; } const topHeight = position === "parentE" ? top : targetRect.top; const bottomHeight = window.innerHeight - top; diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 1dcf6fe9f..8d6855003 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -162,7 +162,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr table.keyValues?.forEach(item => { html += `
-