From 364c3aa1ed85d28643355625c05d2cf88e96676f Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 23 Dec 2025 20:36:58 -0500 Subject: [PATCH] Move chapter buttons to bottom --- author_module.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/author_module.go b/author_module.go index c3c89da..b13254e 100644 --- a/author_module.go +++ b/author_module.go @@ -327,7 +327,7 @@ func buildChaptersTab(state *appState) fyne.CanvasObject { dialog.ShowInformation("Export", "Chapter export will be implemented", state.window) }) - controls := container.NewVBox( + controlsTop := container.NewVBox( fileLabel, selectBtn, widget.NewSeparator(), @@ -338,8 +338,17 @@ func buildChaptersTab(state *appState) fyne.CanvasObject { widget.NewSeparator(), widget.NewLabel("Chapters:"), sourceLabel, - container.NewScroll(chapterList), - container.NewHBox(addChapterBtn, exportBtn), + ) + + listScroll := container.NewScroll(chapterList) + bottomRow := container.NewHBox(addChapterBtn, exportBtn) + + controls := container.NewBorder( + controlsTop, + bottomRow, + nil, + nil, + listScroll, ) refreshChapters()