From 08b882097abcbaf45ec38d4e15d49723795a05a7 Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:10:56 +0200 Subject: [PATCH] UX: chat > channel info: show member count on tab (#25439) * UX: chat > channel info: show member count on tab --- .../discourse/components/chat/routes/channel-info.gjs | 5 +++++ .../chat/assets/stylesheets/common/chat-channel-info.scss | 4 ++++ 2 files changed, 9 insertions(+) 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}} + ({{@channel.membershipsCount}}) + {{/if}} 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 {