clip long license text
This commit is contained in:
parent
3b4d7a4266
commit
11d328b7f9
|
@ -133,16 +133,22 @@ class SnapInfoView(WidgetWrap):
|
||||||
])))
|
])))
|
||||||
|
|
||||||
first_info_row = TableRow([
|
first_info_row = TableRow([
|
||||||
(2, Text([('info_minor', "LICENSE: "), snap.license])),
|
(2, Text(
|
||||||
(3, Text([
|
[
|
||||||
('info_minor', "LAST UPDATED: "),
|
('info_minor', "LICENSE: "),
|
||||||
format_datetime(latest_update)])),
|
snap.license,
|
||||||
|
], wrap='clip')),
|
||||||
|
(3, Text(
|
||||||
|
[
|
||||||
|
('info_minor', "LAST UPDATED: "),
|
||||||
|
format_datetime(latest_update),
|
||||||
|
])),
|
||||||
])
|
])
|
||||||
headings = ["CHANNEL", "VERSION", "SIZE", "PUBLISHED", "CONFINEMENT"]
|
headings = ["CHANNEL", "VERSION", "SIZE", "PUBLISHED", "CONFINEMENT"]
|
||||||
heading_row = Color.info_minor(TableRow(map(Text, headings)))
|
heading_row = Color.info_minor(TableRow(map(Text, headings)))
|
||||||
info_table = TablePile([
|
info_table = TablePile([
|
||||||
first_info_row, TableRow([Text("")]), heading_row])
|
first_info_row, TableRow([Text("")]), heading_row], spacing=2)
|
||||||
lb_channels = NoTabCyclingTableListBox(self.channels)
|
lb_channels = NoTabCyclingTableListBox(self.channels, spacing=2)
|
||||||
info_table.bind(lb_channels)
|
info_table.bind(lb_channels)
|
||||||
|
|
||||||
publisher = [('info_minor header', "by: "), snap.publisher]
|
publisher = [('info_minor header', "by: "), snap.publisher]
|
||||||
|
|
Loading…
Reference in New Issue