clip long license text

This commit is contained in:
Michael Hudson-Doyle 2019-02-14 11:59:28 +13:00
parent 3b4d7a4266
commit 11d328b7f9
1 changed files with 12 additions and 6 deletions

View File

@ -133,16 +133,22 @@ class SnapInfoView(WidgetWrap):
])))
first_info_row = TableRow([
(2, Text([('info_minor', "LICENSE: "), snap.license])),
(3, Text([
(2, Text(
[
('info_minor', "LICENSE: "),
snap.license,
], wrap='clip')),
(3, Text(
[
('info_minor', "LAST UPDATED: "),
format_datetime(latest_update)])),
format_datetime(latest_update),
])),
])
headings = ["CHANNEL", "VERSION", "SIZE", "PUBLISHED", "CONFINEMENT"]
heading_row = Color.info_minor(TableRow(map(Text, headings)))
info_table = TablePile([
first_info_row, TableRow([Text("")]), heading_row])
lb_channels = NoTabCyclingTableListBox(self.channels)
first_info_row, TableRow([Text("")]), heading_row], spacing=2)
lb_channels = NoTabCyclingTableListBox(self.channels, spacing=2)
info_table.bind(lb_channels)
publisher = [('info_minor header', "by: "), snap.publisher]