Skip to content

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

UX: chat > channel info: show member count on tab (#25439)

chapoi08b882097abc
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
index 14dc516a594..d7eae9937e7 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
@@ -78,6 +78,11 @@ export default class ChatRoutesChannelInfo extends Component {
@replace={{true}}
>
{{this.membersLabel}}
+ {{#if @channel.isCategoryChannel}}
+ <span
+ class="c-channel-info__member-count"
+ >({{@channel.membershipsCount}})</span>
+ {{/if}}
</LinkTo>
</li>
</ul>
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel-info.scss b/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
index 93dbca239d2..daf059c1d33 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
@@ -13,6 +13,10 @@
padding-bottom: 1rem;
}
}
+
+ &__member-count {
+ margin-left: 0.25em;
+ }
}
.c-channel-members__add-members {