Refactor Lucide icon rendering by replacing nodes with root across components and fix unintended character encoding issues in placeholders and text.
This commit is contained in:
@@ -35,7 +35,7 @@ class AppMobileNav extends HTMLElement {
|
||||
<span>${t.label}</span>
|
||||
</a>`;
|
||||
}).join('')}`;
|
||||
if (window.lucide) lucide.createIcons({ nodes: [this] });
|
||||
if (window.lucide) lucide.createIcons({ root: this });
|
||||
}
|
||||
}
|
||||
customElements.define('app-mobile-nav', AppMobileNav);
|
||||
|
||||
@@ -19,7 +19,7 @@ class AppRoot extends HTMLElement {
|
||||
if (main) {
|
||||
main.innerHTML = html;
|
||||
main.scrollTop = 0;
|
||||
if (window.lucide) lucide.createIcons({ nodes: [main] });
|
||||
if (window.lucide) lucide.createIcons({ root: main });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ class AppSidebar extends HTMLElement {
|
||||
</button>
|
||||
</div>`;
|
||||
|
||||
if (window.lucide) lucide.createIcons({ nodes: [this] });
|
||||
if (window.lucide) lucide.createIcons({ root: this });
|
||||
this.querySelector('#toggle-btn')?.addEventListener('click', () => this.#toggle());
|
||||
this.querySelector('#logout-btn')?.addEventListener('click', () => {
|
||||
clearToken();
|
||||
|
||||
@@ -85,7 +85,7 @@ class AppTopbar extends HTMLElement {
|
||||
</button>
|
||||
</div>` : ''}`;
|
||||
|
||||
if (window.lucide) lucide.createIcons({ nodes: [this] });
|
||||
if (window.lucide) lucide.createIcons({ root: this });
|
||||
|
||||
this.querySelector('#user-menu-btn')?.addEventListener('click', e => {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user