mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
This commit is contained in:
parent
84323004e0
commit
7b4ead5e8a
@ -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;
|
||||
|
@ -162,7 +162,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr
|
||||
table.keyValues?.forEach(item => {
|
||||
html += `<div class="block__icons av__row" data-id="${id}">
|
||||
<div class="block__icon" draggable="true"><svg><use xlink:href="#iconDrag"></use></svg></div>
|
||||
<div class="block__logo ariaLabel" aria-label="${escapeAttr(item.key.name)}"">
|
||||
<div class="block__logo ariaLabel" data-position="parentW" aria-label="${escapeAttr(item.key.name)}"">
|
||||
${item.key.icon ? unicode2Emoji(item.key.icon, "block__logoicon", true) : `<svg class="block__logoicon"><use xlink:href="#${getColIconByType(item.key.type)}"></use></svg>`}
|
||||
<span>${item.key.name}</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user