diff options
| author | Rohan Godha <[email protected]> | 2025-06-14 16:57:15 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-14 18:57:15 -0400 |
| commit | c9b4564d362db6f7c2c042c378543885f58c4a99 (patch) | |
| tree | db3f368884be87a51b521a4fa9908c67ca5679e3 | |
| parent | d097c546dbbd98dec19fa1ecee8d52616cf13bba (diff) | |
| download | opencode-c9b4564d362db6f7c2c042c378543885f58c4a99.tar.gz opencode-c9b4564d362db6f7c2c042c378543885f58c4a99.zip | |
tui: fix help dialog background (#110)
| -rw-r--r-- | packages/tui/internal/components/dialog/help.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/tui/internal/components/dialog/help.go b/packages/tui/internal/components/dialog/help.go index 45972e034..2ef887890 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") |
