react-component / react-component/table
Feature: maxWidth prop for table column
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
I’d like to suggest adding a maxWidth property to the column definition in rc-table. This would allow developers to set an upper limit on how wide a column can grow, which is especially useful when dealing with content like long strings.
At the moment, rc-table supports width and minWidth for column sizing, but there is no support for maxWidth. This makes it difficult to constrain columns when flexible layouts are needed.
Has anyone previously explored adding maxWidth support or worked around this limitation? Are there any known reasons this hasn’t been implemented?
Would you accept such a pull request?
ref: UIEN-7296
Contributor guide
No contributing guide indexed for this repository
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
Start by locating rc-table's column definition and the existing width and minWidth sizing behavior. Check how flexible layouts handle long strings and determine the expected interaction between width, minWidth, and maxWidth. Done means column definitions accept maxWidth and columns cannot grow beyond that limit, with coverage for the relevant sizing cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100