diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index 2e89e4094..ffd126145 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -42,9 +42,9 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str // file tree and outline、backlink top = parentRect.top; left = parentRect.right + 8; - } else if (position === "parentW") { + } else if (position?.endsWith("parentW")) { // 数据库属性视图 - top = parentRect.top + 8; + top = parentRect.top + parseInt(position) || 8; left = parentRect.left - messageElement.clientWidth; } diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts index eb64c86a8..660f067e7 100644 --- a/app/src/protyle/render/av/select.ts +++ b/app/src/protyle/render/av/select.ts @@ -31,7 +31,7 @@ const filterSelectHTML = (key: string, options: { html += `