This commit is contained in:
parent
6c859f2355
commit
d9cd42a978
2 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,10 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str
|
|||
} else if (position?.endsWith("top")) {
|
||||
// 编辑器动态滚动条
|
||||
top = targetRect.top - messageElement.clientHeight;
|
||||
} else if (position?.endsWith("west")) {
|
||||
// 删除按钮
|
||||
top = targetRect.top + (parseInt(position) || 0);
|
||||
left = targetRect.left - messageElement.clientWidth - 8;
|
||||
}
|
||||
|
||||
const topHeight = position === "parentE" ? top : targetRect.top;
|
||||
|
|
|
@ -186,7 +186,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr
|
|||
</div>
|
||||
<div class="fn__flex-1"></div>
|
||||
<span class="fn__space"></span>
|
||||
<span data-type="remove" class="block__icon block__icon--show b3-tooltips__w b3-tooltips" aria-label="${window.siyuan.languages.removeAV}"><svg><use xlink:href="#iconTrashcan"></use></svg></span>
|
||||
<span data-type="remove" class="block__icon block__icon--show ariaLabel ariaLabel--warning" data-position="west" aria-label="${window.siyuan.languages.removeAV}"><svg><use xlink:href="#iconTrashcan"></use></svg></span>
|
||||
</div>`;
|
||||
table.keyValues?.forEach(item => {
|
||||
innerHTML += `<div class="block__icons av__row" data-id="${id}" data-col-id="${item.key.id}">
|
||||
|
|
Loading…
Add table
Reference in a new issue