Skip to content

Commit c9b4564

Browse files
authored
tui: fix help dialog background (#110)
1 parent d097c54 commit c9b4564

File tree

1 file changed

+3
-1
lines changed
  • packages/tui/internal/components/dialog

1 file changed

+3
-1
lines changed

packages/tui/internal/components/dialog/help.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ func (h *helpDialog) View() string {
5959
descStyle := lipgloss.NewStyle().
6060
Background(t.BackgroundElement()).
6161
Foreground(t.TextMuted())
62+
contentStyle := lipgloss.NewStyle().
63+
PaddingLeft(1).Background(t.BackgroundElement())
6264

6365
lines := []string{}
6466
for _, b := range h.bindings {
@@ -74,7 +76,7 @@ func (h *helpDialog) View() string {
7476
}
7577
}
7678

77-
lines = append(lines, content)
79+
lines = append(lines, contentStyle.Render(content))
7880
}
7981

8082
return strings.Join(lines, "\n")

0 commit comments

Comments
 (0)