F
Filamentβ€’3mo ago
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. πŸ˜„
No description
3 Replies
Rolland
RollandOPβ€’3mo ago
using another maxWidth value solve the problem.
->modalWidth(MaxWidth::FitContent)
->modalWidth(MaxWidth::FitContent)
my sincere thank you, you good sire.
Want results from more Discord servers?
Add your server