Wrap about dialog text and allow scrolling

This commit is contained in:
Stu Leak 2026-01-04 02:45:11 -05:00
parent de248bdc8a
commit fcac7fd4d7

11
main.go
View File

@ -535,20 +535,25 @@ func (s *appState) showAbout() {
donateURL, _ := url.Parse("https://leaktechnologies.dev/support") donateURL, _ := url.Parse("https://leaktechnologies.dev/support")
donateLink := widget.NewHyperlink("Support development", donateURL) donateLink := widget.NewHyperlink("Support development", donateURL)
feedbackLabel := widget.NewLabel("Feedback: use the Logs button on the main menu to view logs; send issues with attached logs.")
feedbackLabel.Wrapping = fyne.TextWrapWord
mainContent := container.NewVBox( mainContent := container.NewVBox(
versionText, versionText,
devText, devText,
logsLink, logsLink,
donateLink, donateLink,
widget.NewLabel("Feedback: use the Logs button on the main menu to view logs; send issues with attached logs."), feedbackLabel,
) )
scrollContent := container.NewVScroll(mainContent)
scrollContent.SetMinSize(fyne.NewSize(420, 220))
var body fyne.CanvasObject var body fyne.CanvasObject
if ltLogo != nil { if ltLogo != nil {
topRow := container.NewHBox(layout.NewSpacer(), ltLogo) topRow := container.NewHBox(layout.NewSpacer(), ltLogo)
body = container.NewBorder(topRow, nil, nil, nil, mainContent) body = container.NewBorder(topRow, nil, nil, nil, scrollContent)
} else { } else {
body = mainContent body = scrollContent
} }
dialog.ShowCustom("About & Support", "Close", body, s.window) dialog.ShowCustom("About & Support", "Close", body, s.window)
} }