getMaxContentWidth not making RegisterTenant full width

Hi all, I have a project where I'm working to introduce a Wizard to the RegisterTeam page. The Wizard is going fine, however, the form is too narrow. I've tried adding getMaxContentWidth to the RegisterTenant page (class RegisterTeam extends RegisterTenant)
public function getMaxContentWidth(): MaxWidth
{
return MaxWidth::Full;
}
public function getMaxContentWidth(): MaxWidth
{
return MaxWidth::Full;
}
However, the form continues to be too narrow. Is there something I'm missing? Looking at the HTML, I've found that if I remove the css class sm:max-w-lg from the <main> tag it goes to full width as expected.
No description
Solution:
protected ?string $maxWidth = '2xl';
protected ?string $maxWidth = '2xl';
try this instead. reference: https://filamentexamples.com/project/register-wizard-steps...
Jump to solution
2 Replies
Solution
Rolland
Rolland2w ago
protected ?string $maxWidth = '2xl';
protected ?string $maxWidth = '2xl';
try this instead. reference: https://filamentexamples.com/project/register-wizard-steps
Satal
Satal2w ago
Thank you! That's fixed it for me