searchable method makes columns all same width
How do I prevent bool values from taking up so much space? It's adding horizontal scroll to the table now because of this.

11 Replies
Hi, maybe try to add
->extraAttributes(['style' => 'width: desired width'])
to the column see if it works.Tried that. No go. Seems like the width is decided higher up in the HTML 😦
Can you share the code?
Every column is same=ish width

They are all 192px
Have you tried something like this?

Tried both yeah
No changes
Mmm no idea then. Wait until someone from the core team replies to you
Cheers
Width does add the style to the <th> but it stays at 192px for some reason
->compact() would be nice to have on a table
Looks like when I remove the search box row from the HTML the columns actually srhinks down a lot
->searchable(isIndividual: true, isGlobal: false)
->searchable(isIndividual: true, isGlobal: false)
Yeah, removing this from columns makes the table super condensed. And each column is a different size now.
Damn didnt know that
Hi there,
stubled over this issue expiriencing the almost the same problem.
Looks like the min-width of all cells at the row containing "->searchable" ist set to "12rem" because the class "min-w-48" is applied to it.
Here are two possible workarounds I did:
1) You could either overload the CSS attributes:
2) Remove the class from the index.blade.php (/docker/stacks/rme_test_lavarel1/vendor/filament/tables/resources/views/index.blade.php)