Restrict comment display to 80 columns

On very wide displays, the change screen can have lines that are
too long making them difficult to scan.  Wrap them at 80 columns
in the review message display.

Change-Id: I3a79137a5c1412d3cdeb0e7c2f918a2960ca818e
This commit is contained in:
James E. Blair 2014-08-17 16:11:13 -07:00
parent c35848bce6
commit 2708e6d2b3
1 changed files with 2 additions and 1 deletions

View File

@ -484,7 +484,8 @@ class ChangeView(urwid.WidgetWrap):
for message in change.messages:
row = self.message_rows.get(message.key)
if not row:
row = ChangeMessageBox(self.app, message)
box = ChangeMessageBox(self.app, message)
row = urwid.Padding(box, width=80)
self.listbox.body.insert(listbox_index, row)
self.message_rows[message.key] = row
# Messages are extremely unlikely to be deleted, skip