Tag Icons

I have had the issue for a while: the tag icon is displayed in bigger size in header tag icons in topic view:

screenshot from tc’s preview:

1 лайк

Core has a rule that increases specifically the house icon:

image

You can overwrite it like:

.d-header .discourse-tags .d-icon-house {
    font-size: var(--font-0);
}
5 лайков

Oh, interesting. I believe the core rule is there when the house icon is used as the site logo. We could update core to increase the specificity and target the logo icon, thus leaving the tag/category icons alone.

5 лайков

I noticed that there are 2 places where the icons don’t show: the dropdown and in the tag banner

@Arkshine @pmusaraj FYI we just reproduced the same issue in search modal. But your CSS workaround fixed it, too :heart:

1 лайк

for some reason this override CSS wasn’t sufficient since 3.6.0.beta1

I adjusted it to the following and it did the trick:

.d-header .search-result-tag .d-icon-house {
    font-size: var(--font-0);
}
2 лайка

Can you please add option to set default tag icon for all tags that do not have a specific icon?

Also, would be great to have integration with Tag Banners

3 лайка

That’s a nice idea, Hyteller! I’m not a programmer so don’t have that power, but if you suggest it in a new Feature topic we could discuss what that might look like and it might be considered by the team. Would be nice if you could provide some more detail from your end about why you think it is a good idea.

Personally I’d love to see tag icons be included in core discourse instead of having to be added as a theme component.

Welcome to our community! :sunflower:

3 лайка

After today’s update, the forum homepage layout is messy:

Похоже, этот компонент не работает. Он отображается в боковой панели, но не появляется в постах. Возможно, я что-то упускаю.

image

1 лайк

Похоже, всё работает нормально в этой теме
Screenshot_20260303_231615_Firefox
Я не вижу тега из вашего первого скриншота на скриншоте боковой панели. Не могли бы вы поделиться конфигурацией компонента темы для тега «Itaa»?

Разобрался. Это конфликтует с компонентом «Удалить дефсы из тегов».
Правка 2: Проблема всё ещё не меняет цвет, но иконка теперь отображается.
У меня очень много тегов, поэтому видны не все.

Я пробовал на разных темах и с разными доступными стилями тегов. Даже отключил другие компоненты, чтобы убедиться.

1 лайк