A platform for community discussion. Free, open, simple.
UX: show reply count in Horizon theme when there's 1 reply (#38938)
Kris61da54b54316
diff --git a/themes/horizon/javascripts/discourse/components/card/topic-replies-column.gjs b/themes/horizon/javascripts/discourse/components/card/topic-replies-column.gjsindex b6dadf1e9e7..3f5d75bee20 100644--- a/themes/horizon/javascripts/discourse/components/card/topic-replies-column.gjs+++ b/themes/horizon/javascripts/discourse/components/card/topic-replies-column.gjs@@ -1,9 +1,8 @@import icon from "discourse/helpers/d-icon";import number from "discourse/helpers/number";-import { gt } from "discourse/truth-helpers";const TopicRepliesColumn = <template>- {{#if (gt @topic.replyCount 1)}}+ {{#if @topic.replyCount}}<span class="topic-replies">{{icon "reply"}}{{number@topic.replyCount}}</span>diff --git a/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs b/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjsindex 812dcf50e4b..878c367e62e 100644--- a/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs+++ b/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs@@ -148,7 +148,7 @@ export default {classes.push("--high-context");}- if (context.topic.replyCount > 1) {+ if (context.topic.replyCount) {classes.push("--has-replies");}