Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
5 replies
Rolland

modify requiresConfirmation width

code:
Actions\Action::make('password_reset')
                ->icon('heroicon-c-shield-exclamation')
                ->color('warning')
                ->form([
                    Forms\Components\TextInput::make('password')
                        ->password()
                        ->revealable()
                        ->minLength(8)
                        ->hint('Leave empty to auto-generate a secure password')
                        ->hintIcon('heroicon-m-information-circle'),
                ])
                ->requiresConfirmation()
                ->modalWidth(MaxWidth::SevenExtraLarge)
                ->action(fn ($record, $data) => PasswordResetManager::getPasswordReset($record, $data)),
Actions\Action::make('password_reset')
                ->icon('heroicon-c-shield-exclamation')
                ->color('warning')
                ->form([
                    Forms\Components\TextInput::make('password')
                        ->password()
                        ->revealable()
                        ->minLength(8)
                        ->hint('Leave empty to auto-generate a secure password')
                        ->hintIcon('heroicon-m-information-circle'),
                ])
                ->requiresConfirmation()
                ->modalWidth(MaxWidth::SevenExtraLarge)
                ->action(fn ($record, $data) => PasswordResetManager::getPasswordReset($record, $data)),


please refer to the image. the text is squished and it look weird. Is there a way to make the modal a bit wider? I did try using the modalWidth but it is not working as I wanted. Altenative method is welcome. Thank you. πŸ˜„
image.png
Solution
Or use another maxwidth https://github.com/filamentphp/filament/blob/3.x/packages/support/src/Enums/MaxWidth.php
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to modify Chart widget width
FilamentFFilament / β“β”Šhelp
3y ago
SaveFormAction : requiresConfirmation()
FilamentFFilament / β“β”Šhelp
3y ago
Submit - requiresConfirmation
FilamentFFilament / β“β”Šhelp
3y ago
Conditional requiresConfirmation ignored
FilamentFFilament / β“β”Šhelp
13mo ago