diff --git a/tui/gniza.tcss b/tui/gniza.tcss index 92a7409..c0ae5be 100644 --- a/tui/gniza.tcss +++ b/tui/gniza.tcss @@ -192,6 +192,12 @@ Select { } /* Switch row */ -Switch { - margin: 0 0 1 1; +#te-switch-row { + height: auto; + align: left middle; + margin: 0 0 1 0; +} + +Switch { + margin: 0 1; } diff --git a/tui/screens/target_edit.py b/tui/screens/target_edit.py index 6e503f9..3b35e18 100644 --- a/tui/screens/target_edit.py +++ b/tui/screens/target_edit.py @@ -46,7 +46,7 @@ class TargetEditScreen(Screen): yield Input(value=target.pre_hook, placeholder="Command to run before backup", id="te-prehook") yield Static("Post-backup hook:") yield Input(value=target.post_hook, placeholder="Command to run after backup", id="te-posthook") - with Horizontal(): + with Horizontal(id="te-switch-row"): yield Static("Enabled: ") yield Switch(value=target.enabled == "yes", id="te-enabled") with Horizontal(id="te-buttons"):