From 17ceeb3666301ff98bba6e29ef25201c06fb634a Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 30 Mar 2024 12:49:56 +0000 Subject: [PATCH] feat: add padding --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 75ea39f..607ff83 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,7 @@ import ( var ( checkMark = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓") + docStyle = lipgloss.NewStyle().Margin(1, 2) ) type keyMap struct { @@ -75,7 +76,7 @@ func (m model) View() string { } helpView := m.help.View(m.keys) - return s + "\n" + helpView + return docStyle.Render(s + "\n" + helpView) } func main() {