Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 1ad5321

Browse files
authored
UX: add sparkle icon to related topics for anons (#897)
1 parent da7c97d commit 1ad5321

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

assets/javascripts/initializers/related-topics.gjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { cached, tracked } from "@glimmer/tracking";
22
import BasicTopicList from "discourse/components/basic-topic-list";
33
import { withPluginApi } from "discourse/lib/plugin-api";
4+
import icon from "discourse-common/helpers/d-icon";
45
import i18n from "discourse-common/helpers/i18n";
56

67
const RelatedTopics = <template>
@@ -11,7 +12,7 @@ const RelatedTopics = <template>
1112
class="more-topics__list"
1213
>
1314
<h3 id="related-topics-title" class="more-topics__list-title">
14-
{{i18n "discourse_ai.related_topics.title"}}
15+
{{icon "discourse-sparkles"}}{{i18n "discourse_ai.related_topics.title"}}
1516
</h3>
1617
<div class="topics">
1718
<BasicTopicList @topics={{@topic.relatedTopics}} />
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
.related-topics {
22
margin: 4.5em 0 1em;
33
}
4+
5+
.more-topics__container {
6+
h3 .d-icon {
7+
margin-right: 0.25em;
8+
color: var(--primary-high);
9+
font-size: var(--font-down-1);
10+
}
11+
12+
.nav-pills .d-icon {
13+
font-size: var(--font-down-1);
14+
}
15+
}

0 commit comments

Comments
 (0)