© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Dhruva

How can I set different width for create and edit page than list pages in resource

My form consists of only two fields, and the width of the create/edit resource page is quite large. How can I configure a smaller width and center the form on the edit and create resource pages?
Solution
Try
$maxContentWidth
$maxContentWidth
on your page class:
protected ?string $maxContentWidth = '2xl';
protected ?string $maxContentWidth = '2xl';
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Page Titles for the different Resource Pages
FilamentFFilament / ❓┊help
10mo ago
Different forms for create and edit
FilamentFFilament / ❓┊help
3y ago
Customize modal width in simple resource default create and edit action
FilamentFFilament / ❓┊help
3y ago
How can create and edit page using TinyEditor
FilamentFFilament / ❓┊help
14mo ago