mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
This commit is contained in:
parent
7881d97e84
commit
0e23e2c04b
12 changed files with 39 additions and 53 deletions
|
|
@ -422,9 +422,8 @@ export class Background {
|
|||
}
|
||||
this.addTags(listItemElement.textContent);
|
||||
});
|
||||
window.siyuan.menus.menu.element.classList.remove("fn__none");
|
||||
const rect = this.iconElement.nextElementSibling.getBoundingClientRect();
|
||||
setPosition(window.siyuan.menus.menu.element, rect.left, rect.top + rect.height);
|
||||
window.siyuan.menus.menu.popup({x: rect.left, y: rect.top + rect.height})
|
||||
inputElement.focus();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,7 @@ export class Title {
|
|||
focusByRange(range);
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.element.classList.remove("fn__none");
|
||||
setPosition(window.siyuan.menus.menu.element, event.clientX, event.clientY);
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY})
|
||||
});
|
||||
this.element.querySelector(".protyle-attr").addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
|
||||
fetchPost("/api/block/getDocInfo", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue