fix: add footer padding

Ayman Bagabas created

Change summary

ui/components/footer/footer.go | 4 +---
ui/styles/styles.go            | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)

Detailed changes

ui/components/footer/footer.go 🔗

@@ -1,8 +1,6 @@
 package footer
 
 import (
-	"strings"
-
 	"github.com/charmbracelet/bubbles/help"
 	"github.com/charmbracelet/bubbles/key"
 	tea "github.com/charmbracelet/bubbletea"
@@ -56,7 +54,7 @@ func (f *Footer) View() string {
 	}
 	s := f.common.Styles.Footer.Copy().Width(f.common.Width)
 	helpView := f.help.View(f.keymap)
-	return s.Render(strings.TrimSpace(helpView))
+	return s.Render(helpView)
 }
 
 // ShortHelp returns the short help key bindings.

ui/styles/styles.go 🔗

@@ -211,6 +211,7 @@ func DefaultStyles() *Styles {
 		Foreground(lipgloss.Color("15"))
 
 	s.Footer = lipgloss.NewStyle().
+		PaddingLeft(1).
 		Height(1)
 
 	s.Branch = lipgloss.NewStyle().