From 80df7f4788cdb91d89ced1dc8cce7689df07af64 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 3 Mar 2022 14:28:27 -0500 Subject: [PATCH] fix: style adjustments * Adjust spinner and no readme comment margins --- internal/tui/bubbles/git/log/bubble.go | 2 +- internal/tui/style/style.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/tui/bubbles/git/log/bubble.go b/internal/tui/bubbles/git/log/bubble.go index 787eff599..579876737 100644 --- a/internal/tui/bubbles/git/log/bubble.go +++ b/internal/tui/bubbles/git/log/bubble.go @@ -405,7 +405,7 @@ func (b *Bubble) View() string { case logState: return b.list.View() case loadingState: - return fmt.Sprintf("%s loading commit", b.spinner.View()) + return fmt.Sprintf("%s loading commit…", b.spinner.View()) case errorState: return b.error.ViewWithPrefix(b.style, "Error") case commitState: diff --git a/internal/tui/style/style.go b/internal/tui/style/style.go index ab2063e27..632b91dc3 100644 --- a/internal/tui/style/style.go +++ b/internal/tui/style/style.go @@ -198,7 +198,8 @@ func DefaultStyles() *Styles { Width(52) // for now s.AboutNoReadme = lipgloss.NewStyle(). - MarginLeft(1). + MarginTop(1). + MarginLeft(2). Foreground(lipgloss.Color("#626262")) s.LogItemInactive = lipgloss.NewStyle(). @@ -275,7 +276,8 @@ func DefaultStyles() *Styles { s.TreeNoItems = s.AboutNoReadme.Copy() s.Spinner = lipgloss.NewStyle(). - MarginLeft(1). + MarginTop(1). + MarginLeft(2). Foreground(lipgloss.Color("205")) return s