Vanessa 2024-01-20 00:18:54 +08:00
parent 84323004e0
commit 7b4ead5e8a
2 changed files with 5 additions and 1 deletions

View file

@ -39,6 +39,10 @@ export const showTooltip = (message: string, target: Element, error = false) =>
// file tree and outline、backlink
top = parentRect.top;
left = parentRect.right + 8;
} else if (position === "parentW") {
// 数据库属性视图
top = parentRect.top + 8;
left = parentRect.left - messageElement.clientWidth;
}
const topHeight = position === "parentE" ? top : targetRect.top;
const bottomHeight = window.innerHeight - top;