Customizing Table Cells
Hi sir Good day,How can I customize the padding and spacing in Filament tables cells
10 Replies
I don't think we have an option for that. You'd need to override the cell styles with CSS.
how to override the cell with css?
Here is one quick and dirty approach I am using in a project to make the cell a bit more comapct. Be warned there is plenty of better ways to go about it.
This covers regular TextColumn and the bulk action selector. 🤪
not works for me why?
I think you want:
->extraAttributes(['class' => 'compact-table'])
on the table.
yes sir i already create😁
But
app.css
is not a Filament theme fileextraAttributes
is in that case probably better. I just simplified my example because I had way more logic in recordClasses
👍extraAttributes
on the $table? 🤔add this in the
theme.css
add this to the table
run npm run build
or dev...