diff options
Diffstat (limited to 'menu/source.go')
| -rw-r--r-- | menu/source.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/menu/source.go b/menu/source.go index 9e0f56a..2d02a5d 100644 --- a/menu/source.go +++ b/menu/source.go @@ -32,6 +32,9 @@ var ( st := lipgloss.NewStyle().Faint(true) return st }) + SourceIconStyle = style.New(func() lipgloss.Style { + return lipgloss.NewStyle().Width(3) + }) ) func (m *Model) Source(src *model.HydratedSource) string { @@ -52,7 +55,7 @@ func (m *Model) Source(src *model.HydratedSource) string { targetContent := lipgloss.JoinVertical(lipgloss.Top, targets...) - icon := PaddedIcon(src.Icon) + icon := SourceIconStyle.Render(PaddedIcon(src.Icon)) parts := []string{ SourceHeaderStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, SourceLabelStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, icon, src.Label()), SourcePathStyle.Render(src.ShortPath())))), |
