Switch "Updated" column to fixed width

Since we're using iso format dates, we know it should be at most
10 chars wide.  Set the width to 10 to avoid wrapping on small
screens.

Change-Id: I854cde22cb1d7678834c4d2ccf423c859b895770
This commit is contained in:
James E. Blair 2015-03-12 07:41:55 -07:00
parent eafe3d599c
commit efe8774bb7
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class ChangeRow(urwid.Button):
if owner:
cols.append(('weight', 2, self.owner))
if updated:
cols.append(('weight', 1, self.updated))
cols.append(('fixed', 10, self.updated))
self.num_columns = len(cols)
self.columns = urwid.Columns(cols, dividechars=1)
self.row_style = urwid.AttrMap(self.columns, '')
@ -130,7 +130,7 @@ class ChangeListHeader(urwid.WidgetWrap):
if owner:
cols.append(('weight', 2, urwid.Text(u'Owner')))
if updated:
cols.append(('weight', 1, urwid.Text(u'Updated')))
cols.append(('fixed', 10, urwid.Text(u'Updated')))
self.num_columns = len(cols)
super(ChangeListHeader, self).__init__(urwid.Columns(cols, dividechars=1))