diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2021-09-04 03:53:24 +0200 |
---|---|---|
committer | Christian Muehlhaeuser <muesli@gmail.com> | 2021-09-04 03:53:24 +0200 |
commit | 01954c0c5cc2a03c6566c08419f490d5cba59fc8 (patch) | |
tree | ecb37fb8b15bc02fc0354bebcab3a5044c2547a2 | |
parent | 8bcdaf7aa63a0f155f230478026303df3719f95e (diff) |
Fix branch name alignmentv0.2.2
-rw-r--r-- | branch.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -55,6 +55,8 @@ func printBranch(branch Branch, maxWidth int) { genericStyle := lipgloss.NewStyle(). Foreground(lipgloss.Color(theme.colorGray)) numberStyle := lipgloss.NewStyle(). + Foreground(lipgloss.Color(theme.colorBlue)).Width(maxWidth) + authorStyle := lipgloss.NewStyle(). Foreground(lipgloss.Color(theme.colorBlue)) timeStyle := lipgloss.NewStyle(). Foreground(lipgloss.Color(theme.colorGreen)).Width(8).Align(lipgloss.Right) @@ -68,7 +70,7 @@ func printBranch(branch Branch, maxWidth int) { s += genericStyle.Render(" ") s += timeStyle.Render(ago(branch.LastCommit.CommittedAt)) s += genericStyle.Render(" ") - s += numberStyle.Render(branch.LastCommit.Author) + s += authorStyle.Render(branch.LastCommit.Author) fmt.Println(s) } |