forked from Mirrors/gomuks
Constrain width of messages in roster view
This commit is contained in:
parent
78cda42654
commit
572bc357cb
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ func (rstr *RosterView) Draw(screen mauview.Screen) {
|
||||||
tmX := rstr.width - 3 - len(tm)
|
tmX := rstr.width - 3 - len(tm)
|
||||||
widget.WriteLine(screen, mauview.AlignLeft, room.GetTitle(), 2, y, tmX, style)
|
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, 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
|
y += renderHeight
|
||||||
if y >= rstr.height {
|
if y >= rstr.height {
|
||||||
|
|
Loading…
Add table
Reference in a new issue