diff --git a/source/plugins/discussions/index.mjs b/source/plugins/discussions/index.mjs index 5f43f359..c4ade8f8 100644 --- a/source/plugins/discussions/index.mjs +++ b/source/plugins/discussions/index.mjs @@ -34,7 +34,7 @@ fetched.map(({upvoteCount}) => discussions.upvotes.discussions += upvoteCount) //Compute favorite category - for (const category of [...fetched.map(({category:{emoji, name}}) => `${imports.emoji.get(emoji)} ${name}`)]) + for (const category of [...fetched.map(({category:{emoji, name}}) => `${imports.emoji.get(emoji) ?? emoji} ${name}`)]) categories[category] = (categories[category] ?? 0) + 1 const categoryEntries = Object.entries(categories).sort((a, b) => b[1] - a[1]) discussions.categories.stats = Object.fromEntries(categoryEntries) diff --git a/source/templates/classic/style.css b/source/templates/classic/style.css index 2d084468..baa781fc 100644 --- a/source/templates/classic/style.css +++ b/source/templates/classic/style.css @@ -310,6 +310,7 @@ } .label.label-flex { display: flex; + align-items: center; } .label .label-right { display: flex; @@ -1341,6 +1342,9 @@ width: 1em; margin-bottom: -.125em; } + .label-flex .gemoji { + margin-right: .25rem; + } /* Cake day */ .cakeday, .cakeday svg {