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 on your page class:
protected ?string $maxContentWidth = '2xl';
protected ?string $maxContentWidth = '2xl';
...
Jump to solution
2 Replies
Solution
Patrick Boivin
Try $maxContentWidth on your page class:
protected ?string $maxContentWidth = '2xl';
protected ?string $maxContentWidth = '2xl';
Dhruva
DhruvaOP2y ago
Thanks

Did you find this page helpful?