mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🚨
This commit is contained in:
parent
f8842918be
commit
8220bad9dd
3 changed files with 13 additions and 13 deletions
|
|
@ -458,10 +458,10 @@ export class Wnd {
|
|||
}
|
||||
|
||||
private renderTabList(event: MouseEvent) {
|
||||
window.siyuan.menus.menu.remove()
|
||||
window.siyuan.menus.menu.remove();
|
||||
Array.from(this.headersElement.children).forEach((item: HTMLElement) => {
|
||||
const iconElement = item.querySelector(".item__icon")
|
||||
const graphicElement = item.querySelector(".item__graphic")
|
||||
const iconElement = item.querySelector(".item__icon");
|
||||
const graphicElement = item.querySelector(".item__graphic");
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: item.querySelector(".item__text").textContent,
|
||||
iconHTML: iconElement ? `<span class="b3-menu__icon">${iconElement.innerHTML}</span>` : "",
|
||||
|
|
@ -471,7 +471,7 @@ export class Wnd {
|
|||
},
|
||||
current: item.classList.contains("item--focus")
|
||||
}).element);
|
||||
})
|
||||
});
|
||||
window.siyuan.menus.menu.popup({
|
||||
x: event.clientX,
|
||||
y: event.clientY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue