feat: add padding

This commit is contained in:
Muhammad Nauman Raza 2024-03-30 12:49:56 +00:00
parent 5341963194
commit 17ceeb3666
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -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() {