Modify size on modal view of resource

Hi I'm trying to find a way to make a Resource (modal) view appear larger than normal and center it on the screen. Is possible? Where doc about this? try in Resouce but not work
public static function form(Form $form): Form
{
return $form
->schema([
Fieldset::make('Modem')
->schema([
TextInput::make('_id')->label('Elastic Id'),
TextInput::make('modem_id'),
TextInput::make('modem_status')->label('Estado del modem'),
TextInput::make('provider')->label('Fabricante'),
])->columns(4),
Fieldset::make('Eventos astronómicos')
->schema([
TextInput::make('sunrise'),
TextInput::make('sunrise_offset'),
TextInput::make('sunset'),
TextInput::make('sunset_offset'),
])->columns(4),
Fieldset::make('Datos del modem')
->schema([
//
]),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Fieldset::make('Modem')
->schema([
TextInput::make('_id')->label('Elastic Id'),
TextInput::make('modem_id'),
TextInput::make('modem_status')->label('Estado del modem'),
TextInput::make('provider')->label('Fabricante'),
])->columns(4),
Fieldset::make('Eventos astronómicos')
->schema([
TextInput::make('sunrise'),
TextInput::make('sunrise_offset'),
TextInput::make('sunset'),
TextInput::make('sunset_offset'),
])->columns(4),
Fieldset::make('Datos del modem')
->schema([
//
]),
]);
}
🤔
No description
Solution:
actually, you can change the modal width in the ViewAction, like ```php Tables\Actions\ViewAction::make() ->modalWidth(MaxWidth::SevenExtraLarge)...
Jump to solution
2 Replies
Solution
LeandroFerreira
actually, you can change the modal width in the ViewAction, like
Tables\Actions\ViewAction::make()
->modalWidth(MaxWidth::SevenExtraLarge)
Tables\Actions\ViewAction::make()
->modalWidth(MaxWidth::SevenExtraLarge)
abkrim
abkrimOP5w ago
A lot of thanks @Leandro Ferreira Works fine
Want results from more Discord servers?
Add your server