This commit is contained in:
Vanessa 2023-11-30 12:16:33 +08:00
parent f0c8e08972
commit be5fa99b2c
5 changed files with 88 additions and 78 deletions

View file

@ -33,6 +33,8 @@ export const showTooltip = (message: string, target: Element, error = false) =>
if (position === "right") {
// block icon
left = targetRect.right - messageElement.clientWidth;
} else if (position?.endsWith("bottom")) {
top += parseInt(position);
} else if (position === "parentE") {
// file tree and outline、backlink
top = parentRect.top;