WIP: centered results table

This commit is contained in:
Fennerr
2023-12-19 14:13:59 +02:00
parent 49003fae08
commit c92740869f
+2 -2
View File
@@ -87,7 +87,7 @@ class LiveDisplay(Live):
Layout(name="service"),
)
self.layout["intro"].split_row(
Layout(name="body", ratio=3, minimum_size=30),
Layout(name="body", ratio=3),
Layout(name="side", ratio=2, visible=False),
)
self.layout["intro"].minimum_size = 9
@@ -531,7 +531,7 @@ class ResultsSection:
# This method allows the ResultsSection to be directly rendered by Rich
if not self.table.rows:
return Text("")
return self.table
return Align.center(self.table)
# Create an instance of LiveDisplay to import elsewhere (ExecutionManager, the checks, the services)