-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow TextInputColumn to expand full width of table column #14812
base: 3.x
Are you sure you want to change the base?
Conversation
@zepfietje wdyt about the additional suggestion? I think it's pretty smart, the way the text input column overflows is weird ATM I think. Prob also needs similar treatment on Select? |
The field-sizing CSS API is amazing, but browser support isn't there yet unfortunately... |
Well it would use the existing behaviour if that property is not available, right? And at the moment we have no autosizing on input columns. So I guess it doesn't hurt? |
Inconsistent behavior across browsers could still be a concern as devs/users may not be aware that the feature isn't supported on Firefox and Safari yet. Apart from that, what would the UX be like exactly? Would the field grow in width when typing? |
It would be great if you could accept the PR to solve the main purpose, to allow textInputColumns to expand full width of the cell. The additional css stuff can easily be added to local proj css for those who wants it. |
Please consider adding min-widht: 125px (or something) td.fi-ta-cell :is(input.fi-input), td.fi-ta-cell :is(select.fi-select-input) to prevent them form completely hiding its content. |
@zepfietje I'm happy to handle all this, but can you please approve the direction?
|
|
It consumes the space in the column and doesn't grow the column |
Sounds good. |
Screen.Recording.2024-11-30.at.08.37.40.movScreen.Recording.2024-11-30.at.08.40.04.mov |
Description
TextInput::make('foo')->inline()
, disables full width.I think I've tried every possible option to make a
TextInputColumn
expand full width of its table column.Visual changes
Before, no matter how I tried to expand the column width
After, just added ->grow() to the column
Functional changes
composer cs
command.Additional css suggestion