UI finetuning
This commit is contained in:
parent
bd82b65f5d
commit
7670c3c172
1 changed files with 3 additions and 3 deletions
|
|
@ -100,11 +100,12 @@ class ConfigTUIScreen(BaseTUIScreen):
|
||||||
|
|
||||||
#config-container {
|
#config-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 1;
|
border: solid $primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataTable {
|
DataTable {
|
||||||
height: 1fr;
|
height: 1fr;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#inline-edit-container {
|
#inline-edit-container {
|
||||||
|
|
@ -173,8 +174,7 @@ class ConfigTUIScreen(BaseTUIScreen):
|
||||||
|
|
||||||
def on_mount(self) -> None:
|
def on_mount(self) -> None:
|
||||||
table = self.query_one(DataTable)
|
table = self.query_one(DataTable)
|
||||||
table.add_columns("KEY", "VALUE")
|
key_col, value_col = table.add_columns("KEY", "VALUE")
|
||||||
|
|
||||||
# Add all config keys
|
# Add all config keys
|
||||||
for key, (method, default) in self.CONFIG_KEYS.items():
|
for key, (method, default) in self.CONFIG_KEYS.items():
|
||||||
display_default = "(empty)" if default == "" else str(default)
|
display_default = "(empty)" if default == "" else str(default)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue