瀏覽代碼

:art: fix https://github.com/siyuan-note/siyuan/issues/8741

Vanessa 2 年之前
父節點
當前提交
ac31b61a19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/dialog/tooltip.ts

+ 1 - 1
app/src/dialog/tooltip.ts

@@ -19,7 +19,7 @@ export const showTooltip = (message: string, target: Element, error = false) =>
     }
     if (target.parentElement.getAttribute("data-type") === "navigation-file") {
         const parentRect = target.parentElement.getBoundingClientRect();
-        setPosition(messageElement, parentRect.right, parentRect.top);
+        setPosition(messageElement, parentRect.right + 8, parentRect.top);
         return;
     }
     if (error) {