From cac747f5c27f9a64141869563a01fc74250037fc Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 31 Dec 2025 14:01:08 -0500 Subject: [PATCH] fix(settings): Enable text wrapping for all labels in dependencies tab Added text wrapping to description labels, install command labels, and 'Required by' labels to prevent horizontal scrolling. All text now wraps properly to fit the available width. --- settings_module.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/settings_module.go b/settings_module.go index 4b5971c..72ace01 100644 --- a/settings_module.go +++ b/settings_module.go @@ -200,6 +200,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject { descLabel := widget.NewLabel(dep.Description) descLabel.TextStyle = fyne.TextStyle{Italic: true} + descLabel.Wrapping = fyne.TextWrapWord installLabel := widget.NewLabel(dep.InstallCmd) installLabel.Wrapping = fyne.TextWrapWord @@ -223,7 +224,9 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject { ) if !isInstalled { - infoBox.Add(widget.NewLabel("Install: " + installLabel.Text)) + installCmdLabel := widget.NewLabel("Install: " + installLabel.Text) + installCmdLabel.Wrapping = fyne.TextWrapWord + infoBox.Add(installCmdLabel) } // Check which modules need this dependency @@ -246,6 +249,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject { if len(modulesNeeding) > 0 { neededLabel := widget.NewLabel("Required by: " + strings.Join(modulesNeeding, ", ")) neededLabel.TextStyle = fyne.TextStyle{Italic: true} + neededLabel.Wrapping = fyne.TextWrapWord infoBox.Add(neededLabel) }