Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

Improve tooltip (#13250)

Jeffrey Chen3af13a10db60
diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts
index ffd126145a..f595d85dff 100644
--- a/app/src/dialog/tooltip.ts
+++ b/app/src/dialog/tooltip.ts
@@ -44,7 +44,7 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str
left = parentRect.right + 8;
} else if (position?.endsWith("parentW")) {
// 数据库属性视图
- top = parentRect.top + parseInt(position) || 8;
+ top = parentRect.top + (parseInt(position) || 8);
left = parentRect.left - messageElement.clientWidth;
}