Skip to content

Commit

Permalink
Cleanup code.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Feb 23, 2025
1 parent 1d6933c commit ff0cbe2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions extension/pages/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,12 @@ async function setupPreferences(requireCleanup) {
for (const { icon, id, description } of ALL_ICONS) {
const iconsWrap = document.newElement({
type: "div",
class: "icon",
children: [document.newElement({ type: "div", class: icon, style: { backgroundPosition: `-${(id - 1) * 18}px 0` } })],
class: ["icon", "hover_tooltip"],
children: [
document.newElement({ type: "div", class: icon, style: { backgroundPosition: `-${(id - 1) * 18}px 0` } }),
document.newElement({ type: "span", class: "hover_tooltip_text", text: description }),
],
});
iconsWrap.classList.add("hover_tooltip");
iconsWrap.appendChild(document.newElement({ type: "span", class: "hover_tooltip_text", text: description }));

hideIconsParent.appendChild(iconsWrap);

Expand Down

0 comments on commit ff0cbe2

Please sign in to comment.