Don't highlight the entire width of the revision row

The blank space is usually larger and brighter than the actual
revision, and there's nothing to suggest that the row should run
the full width of the screen (especially now that the file list
is packed).

Change-Id: I868789f6c1fc2b0c0ea42fc4306dec9c684fa003
This commit is contained in:
James E. Blair 2014-05-05 13:36:38 -07:00
parent acf7ada140
commit 53de49ac8a

View File

@ -198,7 +198,8 @@ class RevisionRow(urwid.WidgetWrap):
buttons = urwid.Columns(buttons + [urwid.Text('')], dividechars=2)
buttons = urwid.AttrMap(buttons, 'revision-button')
self.more = urwid.Pile([table, buttons])
self.pile = urwid.Pile([self.title])
padded_title = urwid.Padding(self.title, width='pack')
self.pile = urwid.Pile([padded_title])
self._w = urwid.AttrMap(self.pile, None, focus_map=self.revision_focus_map)
self.expanded = False
self.update(revision)