Skip to content

Commit

Permalink
fix: style adjustments
Browse files Browse the repository at this point in the history
* Adjust spinner and no readme comment margins
  • Loading branch information
aymanbagabas committed Mar 3, 2022
1 parent 0b3479f commit 80df7f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/tui/bubbles/git/log/bubble.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions internal/tui/style/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 80df7f4

Please sign in to comment.