mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
f99d9e19bc
commit
f43770d8d2
7 changed files with 43 additions and 20 deletions
|
|
@ -77,7 +77,7 @@ export class Plugin {
|
|||
const iconElement = document.createElement("div");
|
||||
iconElement.setAttribute("data-menu", "true");
|
||||
iconElement.addEventListener("click", options.callback);
|
||||
iconElement.id = "plugin" + genUUID();
|
||||
iconElement.id = `plugin_${this.name}_${this.topBarIcons.length}`;
|
||||
if (isMobile()) {
|
||||
iconElement.className = "b3-menu__item";
|
||||
iconElement.innerHTML = (options.icon.startsWith("icon") ? `<svg class="b3-menu__icon"><use xlink:href="#${options.icon}"></use></svg>` : options.icon) +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue