Merge pull request #501 from xnox/left-align-fs

Left align filesystems layout page.
This commit is contained in:
Dimitri John Ledkov 2019-06-06 16:30:26 +01:00 committed by GitHub
commit be3934792f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -174,7 +174,7 @@ class MountList(WidgetWrap):
] ]
if len(mountinfos) == 0: if len(mountinfos) == 0:
self.table.set_contents([]) self.table.set_contents([])
self._w = self._no_mounts_content self._w = Padding.push_2(self._no_mounts_content)
return return
self._w = self.table self._w = self.table
log.debug('FileSystemView: building mount list') log.debug('FileSystemView: building mount list')
@ -371,7 +371,7 @@ class DeviceList(WidgetWrap):
or (not self.show_available and d.has_unavailable_partition())) or (not self.show_available and d.has_unavailable_partition()))
] ]
if len(devices) == 0: if len(devices) == 0:
self._w = self._no_devices_content self._w = Padding.push_2(self._no_devices_content)
self.table.table_rows = [] self.table.table_rows = []
return return
self._w = self.table self._w = self.table
@ -448,19 +448,19 @@ class FilesystemView(BaseView):
body = [ body = [
Text(_("FILE SYSTEM SUMMARY")), Text(_("FILE SYSTEM SUMMARY")),
Text(""), Text(""),
Padding.push_2(self.mount_list), self.mount_list,
Text(""), Text(""),
Text(""), Text(""),
Text(_("AVAILABLE DEVICES")), Text(_("AVAILABLE DEVICES")),
Text(""), Text(""),
Padding.push_2(self.avail_list), self.avail_list,
Text(""), Text(""),
Padding.push_2(bp), bp,
Text(""), Text(""),
Text(""), Text(""),
Text(_("USED DEVICES")), Text(_("USED DEVICES")),
Text(""), Text(""),
Padding.push_2(self.used_list), self.used_list,
Text(""), Text(""),
] ]