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
This commit is contained in:
Shivang Srivastava 2026-02-26 19:15:17 +05:30 committed by GitHub
parent c7513746b1
commit 110a919113
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,7 @@ func main() {
table.WithRows(rows),
table.WithFocused(true),
table.WithHeight(7),
table.WithWidth(42),
)
s := table.DefaultStyles()