Full width table with auto columns
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
Full width tables can be achieved by using percentages and *fr but I propose to add a way to support both auto and 1fr in one. I.e. first allocate each column according to the auto behavior and if there is remaining space then distribute that on top the already allocated space.
This could be either done through an extra parameter to the table like width: 100% or by e.g. "adding" auto+1fr when defining the columns.
I guess there is an open question if the result should be auto + the evenly distributed width or max(auto, 1fr).
Use Case
Wanting a full width table where some columns need more than 1fr space, without having to play around with *fr values until each column is wide enough to not need line breaks. And then having to redo this at a later point when cell contents eventually change.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file, test, or entry point. Start by locating the table column-sizing implementation and existing tests for auto, percentages, and fr columns. Compare the current behaviors, settle whether the new sizing should add to or take the maximum of the auto allocation, and add coverage for the chosen full-width behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100