aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/room-list.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/room-list.go b/ui/room-list.go
index 6905d0e..268666d 100644
--- a/ui/room-list.go
+++ b/ui/room-list.go
@@ -672,7 +672,9 @@ func (list *RoomList) Draw(screen tcell.Screen) {
}
}
- widget.WriteLine(screen, tview.AlignLeft, tagDisplayName, x, y, width, tcell.StyleDefault.Underline(true).Bold(true))
+ roomCount := strconv.Itoa(tagRoomList.TotalLength())
+ widget.WriteLine(screen, tview.AlignLeft, tagDisplayName, x, y, width-1-len(roomCount), tcell.StyleDefault.Underline(true).Bold(true))
+ widget.WriteLine(screen, tview.AlignLeft, roomCount, x+len(tagDisplayName)+1, y, width-2-len(tagDisplayName), tcell.StyleDefault.Italic(true))
items := tagRoomList.Visible()