feat: add padding
This commit is contained in:
parent
5341963194
commit
17ceeb3666
3
main.go
3
main.go
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue