Slide Sorter: inset the Add Section button from the window edge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-11-30 03:29:06 +00:00
co-authored by Claude Opus 5.5
parent ca339a8ec0
commit 8bd6056ca9
+3 -1
View File
@@ -129,7 +129,9 @@ pub fn show(app: &mut SlideApp, ui: &mut Ui) {
let _ = app.run(&fired.command.id, fired.command.params);
}
}
if Button::new(words.add_section.clone()).show(ui).clicked() {
// The button stands off the window's edge, as production's 24 pt inset row.
let add = Stack::new().pad(Pad::Roomy).show(ui, |ui, _| Button::new(words.add_section.clone()).show(ui).clicked());
if add.inner == Some(true) {
let _ = app.run("section.add", json!({"at": cur}));
}
let make_grid = || {