mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 18:56:09 +01:00
This commit is contained in:
parent
84323004e0
commit
7b4ead5e8a
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue