fix(sidebar): no chat count on section headers
- Teams shows none; the unread badge on collapsed sections stays Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -844,12 +844,6 @@ impl SidebarView {
844
844
.when(section.collapsed && section.unread_chats > 0, |header| {
845
845
header.child(count_badge(section.unread_chats, false))
846
846
})
847
.child(
848
div()
849
.text_size(px(11.))
850
.text_color(theme::text_faint())
851
.child(section.count.to_string()),
852
)
853
847
.on_click(cx.listener(move |this, _, _, cx| {
854
848
let id = toggle_id.clone();
855
849
this.state
@@ -844,12 +844,6 @@ impl SidebarView {844
.when(section.collapsed && section.unread_chats > 0, |header| {844
.when(section.collapsed && section.unread_chats > 0, |header| {845
header.child(count_badge(section.unread_chats, false))845
header.child(count_badge(section.unread_chats, false))846
})846
})847
.child(848
div()849
.text_size(px(11.))850
.text_color(theme::text_faint())851
.child(section.count.to_string()),852
)853
.on_click(cx.listener(move |this, _, _, cx| {847
.on_click(cx.listener(move |this, _, _, cx| {854
let id = toggle_id.clone();848
let id = toggle_id.clone();855
this.state849
this.state