Change with of relationmanager modal

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.
No description
2 Replies
_andypeacock
_andypeacockOP4w ago
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(),
]),
]);
}
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(),
]),
]);
}
Want results from more Discord servers?
Add your server