Make user profile form wider?

Can't seem to make the form on the user profile page wider. I tried extraAttributes and attaching a class that way, but it's the parent of the form that's controlling the width, the <main> div with a class of fi-simple-main. I don't want to override the width of that div in my css file because that would affect other pages, and as far as i'm aware, css can't go up the dom from the current element. Can someone clue me in on how to do this? It's probably something super obvious and I'm being dense...
->extraAttributes(['class' => 'sm:max-w-lg'])
->extraAttributes(['class' => 'sm:max-w-lg'])
6 Replies
toeknee
toeknee8mo ago
->width() ?
Jon Mason
Jon MasonOP8mo ago
Method Filament\Forms\Form::width does not exist. I had tried that already..maybe i've got the wrong method.
toeknee
toeknee8mo ago
Ahh I see what you are saying. The form isn't then what is controllign the width. It's your page In the page maxWidth = full
Jon Mason
Jon MasonOP8mo ago
yes, the page div is controlling the width. the parent div of the form.
awcodes
awcodes8mo ago
There’s also ->profile(isSimple: false) if you’d rather have it in the full panel layout.
Jon Mason
Jon MasonOP8mo ago
I would, but this panel has tenancy, so I'm out of luck on that.
Want results from more Discord servers?
Add your server