🎨 Improve tooltip

This commit is contained in:
Jeffrey Chen 2024-12-20 01:13:51 +08:00
parent 1d5f2f8ab7
commit 821cc2b4cc

View file

@ -56,7 +56,7 @@ export const showTooltip = (message: string, target: Element, tooltipClasses?: s
} else if (position?.endsWith("top")) {
// 编辑器动态滚动条
top = targetRect.top - messageElement.clientHeight;
} else if (position?.endsWith("west")) {
} else if (position === "west") {
// 数据库属性视图 移除条目按钮
top = targetRect.top + (parseInt(position) || 0);
left = targetRect.left - messageElement.clientWidth - 8;