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;
}


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.
image.png
Solution
protected ?string $maxWidth = '2xl';


try this instead.

reference: https://filamentexamples.com/project/register-wizard-steps
Was this page helpful?