Skip to content

A platform for community discussion. Free, open, simple.

UX: trim topic list whitespace for badges (#41780)

Krisdf054c2d9933
diff --git a/frontend/discourse/app/components/topic-list/topic-link.gjs b/frontend/discourse/app/components/topic-list/topic-link.gjs
index a8d3ccf3234..4903b193e0f 100644
--- a/frontend/discourse/app/components/topic-list/topic-link.gjs
+++ b/frontend/discourse/app/components/topic-list/topic-link.gjs
@@ -21,11 +21,11 @@ export default class TopicLink extends Component {
class="title"
...attributes
>
- {{trustHTML @topic.fancyTitle}}
- {{#if @topic.visited}}
+ {{~trustHTML @topic.fancyTitle~}}
+ {{~#if @topic.visited~}}
<span class="sr-only">&nbsp;{{i18n "topic.sr_read"}}</span>
- {{/if}}
- {{yield}}
+ {{~/if~}}
+ {{~yield~}}
</a>
{{~! no whitespace ~}}
</PluginOutlet>