refactor: update wrong list behaviour in history screen

This commit is contained in:
Patryk Hegenberg 2025-07-04 17:40:51 +02:00
parent 084ea252a2
commit 4f8e353d48
2 changed files with 17 additions and 2 deletions

0
cmd/build.sh Normal file → Executable file
View file

View file

@ -174,9 +174,24 @@ func MakeHistoryScreen(db *data.DatabaseService, parent fyne.Window) fyne.Canvas
)
toolbar := widget.NewToolbar(widget.NewToolbarAction(theme.ViewRefreshIcon(), refreshData))
content := container.NewVBox(header, container.NewStack(list, container.NewCenter(placeholder)))
layout := container.NewBorder(toolbar, nil, nil, nil, content)
// content := container.NewVBox(header, container.NewStack(list, container.NewCenter(placeholder)))
// layout := container.NewBorder(toolbar, nil, nil, nil, content)
content := container.NewBorder(
header,
nil,
nil,
nil,
container.NewVScroll(list),
)
layout := container.NewBorder(
toolbar,
nil,
nil,
nil,
content,
)
if layout.Visible() {
refreshData()
}