Skip to content

Commit f292ad2

Browse files
committed
Add column spacing to styled list output
Columns in list commands were rendering with no gap between them, making values hard to distinguish. Add right padding to table cells so columns have breathing room.
1 parent 93a5a50 commit f292ad2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/render/render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ func StyledList(data []map[string]any, cols Columns, summary string) string {
5959
Border(lipgloss.NormalBorder()).
6060
StyleFunc(func(row, col int) lipgloss.Style {
6161
if row == table.HeaderRow {
62-
return headerStyle
62+
return headerStyle.PaddingRight(1)
6363
}
64-
return lipgloss.NewStyle()
64+
return lipgloss.NewStyle().PaddingRight(1)
6565
})
6666

6767
var sb strings.Builder

0 commit comments

Comments
 (0)