Make main menu vertically scrollable for 800x600 windows

- Wrap module sections in NewVScroll container
- Use border layout with fixed header and scrollable content
- Allows all modules to be accessible within 800x600 window
- Header and controls remain visible while content scrolls

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Stu Leak 2025-12-20 14:37:33 -05:00
parent d24fd7c281
commit 9af3ca0c1a

View File

@ -106,10 +106,15 @@ func BuildMainMenu(modules []ModuleInfo, onModuleClick func(string), onModuleDro
padding := canvas.NewRectangle(color.Transparent)
padding.SetMinSize(fyne.NewSize(0, 14))
body := container.NewVBox(
header,
padding,
container.NewVBox(sections...),
// Make the sections scrollable
sectionsContent := container.NewVBox(sections...)
scroll := container.NewVScroll(sectionsContent)
// Use border layout with fixed header and scrollable content
body := container.NewBorder(
container.NewVBox(header, padding),
nil, nil, nil,
scroll,
)
// Wrap with HSplit if sidebar is visible