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.
This commit is contained in:
parent
8403c991e9
commit
cac747f5c2
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user