Make main menu vertically resizable

This commit is contained in:
Stu Leak 2025-12-24 00:30:18 -05:00
parent a7bffb63ee
commit 30bc747f0c

View File

@ -122,11 +122,14 @@ func BuildMainMenu(modules []ModuleInfo, onModuleClick func(string), onModuleDro
padding := canvas.NewRectangle(color.Transparent) padding := canvas.NewRectangle(color.Transparent)
padding.SetMinSize(fyne.NewSize(0, 4)) padding.SetMinSize(fyne.NewSize(0, 4))
// Compact body without scrolling sectionsBox := container.NewVBox(sections...)
body := container.NewVBox( scroll := container.NewVScroll(sectionsBox)
header, scroll.SetMinSize(fyne.NewSize(0, 0))
padding,
container.NewVBox(sections...), body := container.NewBorder(
container.NewVBox(header, padding),
nil, nil, nil,
scroll,
) )
// Wrap with HSplit if sidebar is visible // Wrap with HSplit if sidebar is visible