Explorar el Código

tui: fix help dialog background (#110)

Rohan Godha hace 10 meses
padre
commit
c9b4564d36
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/tui/internal/components/dialog/help.go

+ 3 - 1
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")