Change the size of the input in TextInputColumn

Hello,

I am trying to change the size of the input field of the TextInputColumn.
This is the code I use
Tables\Columns\TextInputColumn::make('stock')
  ->extraAttributes(['style' => 'max-width: 20px', 'class' => 'max-w-20'])
  ->label('Stock'),
  

Attached is a screenshot of the result.

I am not managing to change it's size. Any suggestions?
Screenshot_2025-01-23_at_18.46.36.png
Was this page helpful?