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

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([
//
]),
]);
}
Solution
actually, you can change the modal width in the
ViewActionViewAction, likeTables\Actions\ViewAction::make()
->modalWidth(MaxWidth::SevenExtraLarge)Tables\Actions\ViewAction::make()
->modalWidth(MaxWidth::SevenExtraLarge)