on main help sign in
fix(ui): fix help wrapping on dialogs
commit340ce206c0248d1a226649b19e5e2c2adaab006f authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 9 Feb 2026, 15:03 (8 months ago) parent7d00857
1 file changed+3−2
internal/ui/dialog/common.go+3−2
internal/ui/dialog/common.go+3−2
@@ -136,9 +136,10 @@ func (rc *RenderContext) Render() string {
136136 if rc.Gap > 0 {
137137 parts = append(parts, make([]string, rc.Gap)...)
138138 }
139+ helpWidth := rc.Width - dialogStyle.GetHorizontalFrameSize()
139140 helpStyle := rc.Styles.Dialog.HelpView
140− helpStyle = helpStyle.Width(rc.Width - dialogStyle.GetHorizontalFrameSize())
141− helpView := ansi.Truncate(helpStyle.Render(rc.Help), rc.Width, "")
141+ helpStyle = helpStyle.Width(helpWidth)
142+ helpView := ansi.Truncate(helpStyle.Render(rc.Help), helpWidth-1, "")
142143 parts = append(parts, helpView)
143144 }
144145