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:
2026-05-17 17:30:04 -04:00
parent 17e05cb61d
commit 309f19520b
27 changed files with 694 additions and 1622 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ class WoDetail extends HTMLElement {
const s = this.shadowRoot;
s.innerHTML = `<style>${this.#css()}</style>${this.#html()}`;
this.#bind();
if (window.lucide) lucide.createIcons({ nodes: [s] });
if (window.lucide) lucide.createIcons({ root: s });
}
#css() { return `
@@ -297,7 +297,7 @@ class WoDetail extends HTMLElement {
this.#tab = tab.dataset.tab;
s.querySelectorAll('.tab').forEach(t => t.classList.toggle('active', t.dataset.tab === this.#tab));
s.querySelector('#tab-content').innerHTML = this.#tabContent(this.#wo);
if (window.lucide) lucide.createIcons({ nodes: [s.querySelector('#tab-content')] });
if (window.lucide) lucide.createIcons({ root: s.querySelector('#tab-content') });
}));
// Status dropdown