change default info icon size

This commit is contained in:
Send_Nukez 2021-11-27 12:45:53 +01:00
parent 7c2fbea06f
commit 098a112819

View file

@ -75,7 +75,7 @@ export default class Info {
if (bg != null) elem.style.backgroundColor = bg; if (bg != null) elem.style.backgroundColor = bg;
} }
if (info.order != 0) elem.style.order = info.order; if (info.order != 0) elem.style.order = info.order;
if (!info.icon.startsWith("<svg")) info.icon = icons.get(info.icon); if (!info.icon.startsWith("<svg")) info.icon = icons.get(info.icon, { size: 18 });
elem.innerHTML = `${info.text ?? ""}${info.icon ?? ""}`; elem.innerHTML = `${info.text ?? ""}${info.icon ?? ""}`;
this.#container.appendChild(elem); this.#container.appendChild(elem);