Show "git clone" command in header, unless we're on config

Toby Padilla created

Change summary

tui/bubbles/repo/bubble.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

tui/bubbles/repo/bubble.go 🔗

@@ -102,12 +102,15 @@ func (b Bubble) headerView() string {
 		ts = ts.Copy().BorderForeground(b.styles.ActiveBorderColor)
 		ns = ns.Copy().BorderForeground(b.styles.ActiveBorderColor)
 	}
+	var gc string
 	n := b.name
 	if n == "config" {
 		n = "Home"
+	} else {
+		gc = fmt.Sprintf("git clone %s", b.sshAddress())
 	}
 	title := ts.Render(n)
-	note := ns.Width(b.width - b.widthMargin - lipgloss.Width(title)).Render(b.sshAddress())
+	note := ns.Width(b.width - b.widthMargin - lipgloss.Width(title)).Render(gc)
 	return lipgloss.JoinHorizontal(lipgloss.Top, title, note)
 }