Constrain width of messages in roster view

This commit is contained in:
FIGBERT 2023-03-06 09:20:28 -08:00
parent 78cda42654
commit 572bc357cb
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -177,7 +177,7 @@ func (rstr *RosterView) Draw(screen mauview.Screen) {
tmX := rstr.width - 3 - len(tm)
widget.WriteLine(screen, mauview.AlignLeft, room.GetTitle(), 2, y, tmX, style)
widget.WriteLine(screen, mauview.AlignLeft, tm, tmX, y, 2+len(tm), style)
widget.WriteLine(screen, mauview.AlignLeft, lastMessage, 2, y+1, rstr.width, msgStyle)
widget.WriteLine(screen, mauview.AlignLeft, lastMessage, 2, y+1, rstr.width-5, msgStyle)
y += renderHeight
if y >= rstr.height {