Skip to content

Commit

Permalink
Update breadcrumbs styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmulvaney committed Jan 2, 2025
1 parent 9ba2f21 commit d1001d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions breadcrumbs/breadcrumbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Styles struct {

func DefaultStyles() Styles {
return Styles{
Crumb: lipgloss.NewStyle().Padding(0, 1).MarginRight(1).Foreground(lipgloss.Color("0")).Background(lipgloss.Color("4")).Bold(true),
Crumb: lipgloss.NewStyle().Padding(0, 1).Margin(1).Foreground(lipgloss.Color("0")).Background(lipgloss.Color("4")).Bold(true),
Active: lipgloss.NewStyle().Padding(0, 1).Foreground(lipgloss.Color("0")).Background(lipgloss.Color("214")).Bold(true),
}
}
Expand Down Expand Up @@ -56,7 +56,9 @@ func (m Model) View() string {
crumbs = append(crumbs, m.styles.Active.Render(crumb))
continue
}
crumbs = append(crumbs, m.styles.Crumb.Render(crumb))
// TODO: this should probably be a fprint
renderedCrumb := lipgloss.JoinHorizontal(lipgloss.Left, "<", crumb, ">")
crumbs = append(crumbs, m.styles.Crumb.Render(renderedCrumb))
}

return lipgloss.JoinHorizontal(lipgloss.Left, crumbs...)
Expand Down

0 comments on commit d1001d7

Please sign in to comment.