Skip to content

The open source coding agent.

TypeScript

tui: fix help dialog background (#110)

Rohan Godhac9b4564d362d
diff --git a/packages/tui/internal/components/dialog/help.go b/packages/tui/internal/components/dialog/help.go
index 45972e03468..2ef88789097 100644
--- a/packages/tui/internal/components/dialog/help.go
+++ b/packages/tui/internal/components/dialog/help.go
@@ -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")