Skip to content

Commit 110a919

Browse files
authored
fix(examples): add missing WithWidth to table example (#1598)
Without an explicit width, the table renders with no rows visible. Width should be the sum of all column widths (34) plus borders (8) = 42. Fixes #1597
1 parent c751374 commit 110a919

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/table/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func main() {
162162
table.WithRows(rows),
163163
table.WithFocused(true),
164164
table.WithHeight(7),
165+
table.WithWidth(42),
165166
)
166167

167168
s := table.DefaultStyles()

0 commit comments

Comments
 (0)