summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2021-09-04 03:53:24 +0200
committerChristian Muehlhaeuser <muesli@gmail.com>2021-09-04 03:53:24 +0200
commit01954c0c5cc2a03c6566c08419f490d5cba59fc8 (patch)
treeecb37fb8b15bc02fc0354bebcab3a5044c2547a2
parent8bcdaf7aa63a0f155f230478026303df3719f95e (diff)
Fix branch name alignmentv0.2.2
-rw-r--r--branch.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/branch.go b/branch.go
index e0fab3b..24d38e8 100644
--- a/branch.go
+++ b/branch.go
@@ -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)
}