FilamentF
Filament15mo ago
abkrim

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([
                        //
                    ]),
            ]);
    }

🤔
CleanShot_2024-10-23_at_08.54.17.jpg
Solution
actually, you can change the modal width in the ViewAction, like

Tables\Actions\ViewAction::make()
    ->modalWidth(MaxWidth::SevenExtraLarge)
Was this page helpful?