diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-17 01:03:33 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-17 01:03:33 +0200 |
| commit | d050bb04ea088e9494092156fffafc331917eff6 (patch) | |
| tree | f9fcf1dcbe21a47fa39cf446e5234a49aafcfcb8 | |
| parent | 1ce8393bcacbe774715e73d144e24835954c6216 (diff) | |
realign icons with source names again
| -rw-r--r-- | menu/source.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/menu/source.go b/menu/source.go index 68152fa..320a117 100644 --- a/menu/source.go +++ b/menu/source.go @@ -24,7 +24,7 @@ var ( }) SourceIconStyle = style.New(func() lipgloss.Style { - st := lipgloss.NewStyle().PaddingRight(1) + st := lipgloss.NewStyle().PaddingRight(1).Width(3) return st }) @@ -46,7 +46,7 @@ func (m *Model) Source(src *model.HydratedSource) string { targetContent := lipgloss.JoinVertical(lipgloss.Top, targets...) - icon := SourceIconStyle.Render(Icon(src.Icon)) + icon := SourceIconStyle.Render(src.Icon) parts := []string{ SourceHeaderStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, SourceLabelStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, icon, src.Label()), SourcePathStyle.Render(src.ShortPath())))), |
