Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(table): render missing widths as equal #710

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

joshka
Copy link
Member

@joshka joshka commented Dec 26, 2023

Previously, if .widths was not called before rendering a Table, no
content would render in the area of the table. This commit changes that
behaviour to default to equal widths for each column.

Fixes #510.

(Resubmission of #519 by @joshcbrown due to git footgun)

Previously, if `.widths` was not called before rendering a `Table`, no
content would render in the area of the table. This commit changes that
behaviour to default to equal widths for each column.

Fixes #510.
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e67d3c6) 91.8% compared to head (2d027be) 91.8%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #710   +/-   ##
=====================================
  Coverage   91.8%   91.8%           
=====================================
  Files         42      42           
  Lines      13810   13847   +37     
=====================================
+ Hits       12683   12720   +37     
  Misses      1127    1127           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Valentin271 Valentin271 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@orhun orhun merged commit b0ed658 into main Dec 26, 2023
@orhun orhun deleted the table-default-widths branch December 26, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table: Make it more difficult to render a table without widths set
4 participants