Improve tooltip (#13250)

* Improve tooltip

* Improve tooltip
This commit is contained in:
Jeffrey Chen 2024-11-25 11:25:19 +08:00 committed by GitHub
parent 31f80722e3
commit 3af13a10db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}