Changing the maximum content width is not working?

According to docs i should be able to change content maximum width, right?! Tried both. 1. in config/filament.phpi entered
'layout' => [
'max_content_width' => 'full',
],
'layout' => [
'max_content_width' => 'full',
],
My resource page html still contains max-w-7xl 2. in my resource page i entered protected ?string $maxContentWidth = 'full'; My resource page html still contains max-w-7xl What i'm missing here?
Solution:
I think there's a maxContentWidth() method on the Panel object
Jump to solution
9 Replies
Vp
Vp2y ago
Weird, any cache issues?
Gaspar
GasparOP2y ago
Dang it 😦 it was the cache issue.. had to clear the cache after changes. Can you add it to docs, please?
Vp
Vp2y ago
Glad it works
Gaspar
GasparOP2y ago
Well. This cache clearing helped only this config problem. No dice with 2nd problem.
Vp
Vp2y ago
Did you put inside List? "You may override the maximum content width for a specific page in the admin panel by using the $maxContentWidth property:" you need to put in the specific file.. not in resource
Gaspar
GasparOP2y ago
That's it! Thank you!
Mir Dostogir Ahmed
how i set it globally not put in the specific every single file ?
Solution
Dennis Koch
Dennis Koch12mo ago
I think there's a maxContentWidth() method on the Panel object
Mir Dostogir Ahmed
Yes its work.

Did you find this page helpful?