浏览代码

Improve tooltip

Jeffrey Chen 7 月之前
父节点
当前提交
72b25f632b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/dialog/tooltip.ts

+ 1 - 1
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) || 0) || 8;
+        top = parentRect.top + (parseInt(position) || 8);
         left = parentRect.left - messageElement.clientWidth;
     }