feat: add padding

This commit is contained in:
Muhammad Nauman Raza 2024-03-30 12:49:56 +00:00
parent 9239e54eeb
commit d531888ca8

View file

@ -14,6 +14,7 @@ import (
var ( var (
checkMark = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓") checkMark = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓")
docStyle = lipgloss.NewStyle().Margin(1, 2)
) )
type keyMap struct { type keyMap struct {
@ -75,7 +76,7 @@ func (m model) View() string {
} }
helpView := m.help.View(m.keys) helpView := m.help.View(m.keys)
return s + "\n" + helpView return docStyle.Render(s + "\n" + helpView)
} }
func main() { func main() {