F
Filamentβ€’12mo ago
_andypeacock

How to reduce padding on table resource

Hi all, I've got a resource with a table with a fair amount of text per entry. Is there an easy way to reduce this gap?
No description
Solution:
hum, you can use this in the ListPage.php
protected ?string $maxContentWidth = 'full';
protected ?string $maxContentWidth = 'full';
...
Jump to solution
7 Replies
awcodes
awcodesβ€’12mo ago
Not on a per page basis. The max content width is a setting on the panel and its global
Solution
LeandroFerreira
LeandroFerreiraβ€’12mo ago
hum, you can use this in the ListPage.php
protected ?string $maxContentWidth = 'full';
protected ?string $maxContentWidth = 'full';
awcodes
awcodesβ€’12mo ago
Listen to Leandro. LOL. I forgot about the property.
LeandroFerreira
LeandroFerreiraβ€’12mo ago
Hey Adam, my answer is based on my recent experience πŸ˜…
awcodes
awcodesβ€’12mo ago
No worries. Would seem weird to me to have one page that wasn't the same as the other pages, but that's an opinion and not a solution. πŸ™‚
LeandroFerreira
LeandroFerreiraβ€’12mo ago
makes sense as well
_andypeacock
_andypeacockOPβ€’11mo ago
Thanks both, I forgot to come back and follow-up on this. That works great @Leandro Ferreira , although as you say @awcodes that does make the list page different to the others. If I get the chance I'll see if I can submit a PR to add that to the other pages as well.
Want results from more Discord servers?
Add your server