Move schedule toggle switches to left of label
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -108,13 +108,13 @@ class ScheduleEditScreen(Screen):
|
|||||||
yield Static("Sources (off=all):")
|
yield Static("Sources (off=all):")
|
||||||
for tname in list_conf_dir("targets.d"):
|
for tname in list_conf_dir("targets.d"):
|
||||||
with Horizontal(classes="sched-switch-row"):
|
with Horizontal(classes="sched-switch-row"):
|
||||||
yield Static(tname, classes="sched-switch-label")
|
|
||||||
yield Switch(value=False, id=f"sched-src-{tname}")
|
yield Switch(value=False, id=f"sched-src-{tname}")
|
||||||
|
yield Static(tname, classes="sched-switch-label")
|
||||||
yield Static("Destinations (off=all):")
|
yield Static("Destinations (off=all):")
|
||||||
for rname in list_conf_dir("remotes.d"):
|
for rname in list_conf_dir("remotes.d"):
|
||||||
with Horizontal(classes="sched-switch-row"):
|
with Horizontal(classes="sched-switch-row"):
|
||||||
yield Static(rname, classes="sched-switch-label")
|
|
||||||
yield Switch(value=False, id=f"sched-dst-{rname}")
|
yield Switch(value=False, id=f"sched-dst-{rname}")
|
||||||
|
yield Static(rname, classes="sched-switch-label")
|
||||||
with Horizontal(id="sched-edit-buttons"):
|
with Horizontal(id="sched-edit-buttons"):
|
||||||
yield Button("Save", variant="primary", id="btn-save")
|
yield Button("Save", variant="primary", id="btn-save")
|
||||||
yield Button("Cancel", id="btn-cancel")
|
yield Button("Cancel", id="btn-cancel")
|
||||||
|
|||||||
Reference in New Issue
Block a user