mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 18:23:52 -06:00
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:
co-authored by
Claude Opus 5.5
parent
ca339a8ec0
commit
8bd6056ca9
@@ -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 = || {
|
||||
|
||||
Reference in New Issue
Block a user