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

Fixed right table column max and min width or adoptive column size based on content #46824

Closed
debotos opened this issue Jan 5, 2024 · 2 comments

Comments

@debotos
Copy link

debotos commented Jan 5, 2024

What problem does this feature solve?

Using AntD 4.10.0 Table Component.
Currently table only support px/% width value for column.
And if not provided it's adoptive based on the content and available screen size.
When screen size is large(more than needed by all columns content combined) then available spaces distributed among all the columns including action columns. As a result in large screen extra spaces are shown right of the action column content. If max and min size can be specified along with col width then it can be solved.

What does the proposed API look like?

minWidth: 100,
maxWidth: 200
Props for column along with width prop.

@afc163
Copy link
Member

afc163 commented Jan 8, 2024

Trace #20885

@afc163 afc163 closed this as completed Jan 8, 2024
@debotos
Copy link
Author

debotos commented Jan 8, 2024

Those suggested solutions don't work on the fixed column(left/right).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants