From 8909e1fa0c0b1a1f9b3b0d963db4caf2d9d7729f Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 17 Apr 2026 01:05:21 +0200 Subject: use shared icon method --- menu/source.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/menu/source.go b/menu/source.go index 320a117..b5d462b 100644 --- a/menu/source.go +++ b/menu/source.go @@ -22,11 +22,6 @@ var ( st := lipgloss.NewStyle().Border(lipgloss.OuterHalfBlockBorder(), false, false, false, true).Background(SourceHeaderBackground).BorderBackground(SourceHeaderBackground).PaddingRight(1).PaddingLeft(1).MarginRight(1) return st - }) - SourceIconStyle = style.New(func() lipgloss.Style { - st := lipgloss.NewStyle().PaddingRight(1).Width(3) - return st - }) SourceTargetsStyle = style.New(func() lipgloss.Style { st := lipgloss.NewStyle() @@ -46,7 +41,7 @@ func (m *Model) Source(src *model.HydratedSource) string { targetContent := lipgloss.JoinVertical(lipgloss.Top, targets...) - icon := SourceIconStyle.Render(src.Icon) + icon := PaddedIcon(src.Icon) parts := []string{ SourceHeaderStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, SourceLabelStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, icon, src.Label()), SourcePathStyle.Render(src.ShortPath())))), -- cgit v1.3