diff --git a/src/ui/rooms.rs b/src/ui/rooms.rs index 3a08f7d..178023b 100644 --- a/src/ui/rooms.rs +++ b/src/ui/rooms.rs @@ -117,12 +117,11 @@ impl Rooms { } async fn render_rows(&self, rooms: Vec) -> Vec> { - let mut rows: Vec> = - vec![Row::unsel(("Rooms", ContentStyle::default().bold()))]; + let mut rows: Vec> = vec![]; - if rooms.is_empty() { - rows.push(Row::unsel(("none", ContentStyle::default().dark_grey()))) - } + let heading_style = ContentStyle::default().bold(); + let heading = Styled::new(("Rooms", heading_style)).then(format!(" ({})", rooms.len())); + rows.push(Row::unsel(heading)); for room in rooms { let bg_style = ContentStyle::default();