Is it possible to align header actions on ListRecords page of a Filament Resourse?

Hello, I'm a little bit stuck trying to align create button to the start instead of end. Didn't find any references to header actions alignment in the docs. So is it possible? Thank you!
6 Replies
toeknee
toeknee2w ago
Does ->alignCenter() not work?
nikitabuida
nikitabuidaOP2w ago
thank you, but Method Filament\Actions\CreateAction::alignCenter does not exist.
toeknee
toeknee2w ago
Then it does not work hehe
->extraAttributes(['class' => 'text-center content-center'])
->extraAttributes(['class' => 'text-center content-center'])
nikitabuida
nikitabuidaOP2w ago
looks like the only thing that works is redefining header view via getHeader method because actions container has class ms-auto and you just can't specify any aligning attributes on the child (action button)
toeknee
toeknee2w ago
I have a feeling the action are centered already?
nikitabuida
nikitabuidaOP2w ago
Yep, but ms-auto moves them to the left. Well redefining header view looks like good compromise for such seldom customized feature

Did you find this page helpful?