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 += `
-