mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 19:26:09 +01:00
This commit is contained in:
parent
f0c8e08972
commit
be5fa99b2c
5 changed files with 88 additions and 78 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue