mirror of
https://github.com/lukaszraczylo/lolcathost.git
synced 2026-07-10 04:43:11 +00:00
Add automatic wrapping of the content based on terminal width
This commit is contained in:
@@ -291,7 +291,7 @@ func (f *Form) View() string {
|
||||
sb.WriteString("\n\n")
|
||||
|
||||
sb.WriteString("\n")
|
||||
sb.WriteString(helpDescStyle.Render("Tab/↓ next • Shift+Tab/↑ prev • ←→ select group • Enter save • Esc cancel"))
|
||||
sb.WriteString(WrapHelpText("Tab/↓ next • Shift+Tab/↑ prev • ←→ select group • Enter save • Esc cancel", f.width-6))
|
||||
|
||||
return dialogStyle.Render(sb.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user