tui: fix help dialog background (#110)

pull/111/head v0.1.44
Rohan Godha 2025-06-14 16:57:15 -06:00 committed by GitHub
parent d097c546db
commit c9b4564d36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ func (h *helpDialog) View() string {
descStyle := lipgloss.NewStyle().
Background(t.BackgroundElement()).
Foreground(t.TextMuted())
contentStyle := lipgloss.NewStyle().
PaddingLeft(1).Background(t.BackgroundElement())
lines := []string{}
for _, b := range h.bindings {
@ -74,7 +76,7 @@ func (h *helpDialog) View() string {
}
}
lines = append(lines, content)
lines = append(lines, contentStyle.Render(content))
}
return strings.Join(lines, "\n")