Diff
1diff --git a/ui/pages/repo/repo.go b/ui/pages/repo/repo.go
2index 5d0d4a58bed8b35b4a6c5b2f47aeb898fabfbd86..16b21ac3e9f581c242c6edd20b023db91d0dfc19 100644
3--- a/ui/pages/repo/repo.go
4+++ b/ui/pages/repo/repo.go
5@@ -310,10 +310,7 @@ func (r *Repo) headerView() string {
6 } else {
7 desc = r.common.Styles.Repo.HeaderDesc.Render(desc)
8 }
9- // TODO move this into a style.
10- urlStyle := lipgloss.NewStyle().
11- MarginLeft(1).
12- Foreground(lipgloss.Color("168")).
13+ urlStyle := r.common.Styles.URLStyle.Copy().
14 Width(r.common.Width - lipgloss.Width(desc) - 1).
15 Align(lipgloss.Right)
16 url := git.RepoURL(cfg.Host, cfg.Port, r.selectedRepo.Repo())
17diff --git a/ui/styles/styles.go b/ui/styles/styles.go
18index 4e1c14440bc09e0e45cfd63e70c07c40a61ef4f9..f596a09a1b167688b82fd5f81b7e7cf85ed38a21 100644
19--- a/ui/styles/styles.go
20+++ b/ui/styles/styles.go
21@@ -53,6 +53,7 @@ type Styles struct {
22 HelpKey lipgloss.Style
23 HelpValue lipgloss.Style
24 HelpDivider lipgloss.Style
25+ URLStyle lipgloss.Style
26
27 Error lipgloss.Style
28 ErrorTitle lipgloss.Style
29@@ -257,6 +258,10 @@ func DefaultStyles() *Styles {
30 Foreground(lipgloss.Color("237")).
31 SetString(" • ")
32
33+ s.URLStyle = lipgloss.NewStyle().
34+ MarginLeft(1).
35+ Foreground(lipgloss.Color("168"))
36+
37 s.Error = lipgloss.NewStyle().
38 MarginTop(2)
39