From b7780e8becf4d1fc3dea4d5037e3be5e4006ad61 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 18 Nov 2024 16:42:04 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11053 --- app/src/dialog/tooltip.ts | 4 ++-- app/src/protyle/render/av/select.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 += `