#Change with of relationmanager modal

5 messages · Page 1 of 1 (latest)

haughty gull
#

Hi, is there any way to make the modal wider? I'm trying to embed unlayer's widget, and it's wider than the modal.

jovial idolBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sullen tendon
haughty gull
#

Ah, thanks. I'd seen that but took a while to work out where it actually goes.

#

For anyone else, it goes in the relationmanager itself:

public function table(Table $table) : Table
    {
        return $table
            ->recordTitleAttribute('subject')
            ->columns([
                Tables\Columns\TextColumn::make('subject'),
            ])
            ->filters([
                //
            ])
            ->headerActions([
                Tables\Actions\CreateAction::make()->modalWidth(MaxWidth::Screen),
            ])
            ->actions([
                Tables\Actions\EditAction::make(),
                Tables\Actions\DeleteAction::make(),
            ])
            ->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    Tables\Actions\DeleteBulkAction::make(),
                ]),
            ]);
    }