mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
💄 icon
This commit is contained in:
parent
7b1c30bc26
commit
37f950ba4f
1 changed files with 1 additions and 1 deletions
|
|
@ -1885,7 +1885,7 @@ export class Gutter {
|
|||
if (nodeElement.getAttribute("data-type") === "NodeAttributeView") {
|
||||
const iconElement = nodeElement.querySelector(".item__graphic");
|
||||
if (iconElement) {
|
||||
this.element.style.top = `${iconElement.getBoundingClientRect().top - (window.siyuan.config.editor.fontSize * 1.625 - 14) / 2}px`;
|
||||
this.element.style.top = `${Math.max(iconElement.getBoundingClientRect().top - (window.siyuan.config.editor.fontSize * 1.625 - 14) / 2, wysiwyg.parentElement.getBoundingClientRect().top)}px`;
|
||||
} else {
|
||||
this.element.style.top = `${Math.max(rect.top, wysiwyg.parentElement.getBoundingClientRect().top) + 8}px`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue