style: increase study group modal width to 3XL and remove warning color from edit action

This commit is contained in:
Yoga Pangestu 2026-03-29 21:53:30 +07:00
parent 8b48d70d79
commit c8a98d8d65
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ protected function setUp(): void
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
->label('Simpan dan Tambah Lagi'),
])
->modalWidth(Width::Large)
->modalWidth(Width::ThreeExtraLarge)
->schema(fn ($livewire) => $livewire->studyGroupFormSchema())
->after(function (StudyGroup $record, array $data) {
if (isset($data['course_id'])) {

View File

@ -21,14 +21,13 @@ protected function setUp(): void
$this
->label('Ubah')
->icon(Heroicon::OutlinedPencilSquare)
->color('warning')
->iconButton()
->tooltip('Ubah')
->record(fn (array $arguments): StudyGroup => StudyGroup::findOrFail($arguments['studyGroup']))
->modalHeading(fn (StudyGroup $record) => "Ubah {$record->name}")
->modalSubmitActionLabel('Simpan')
->modalCancelActionLabel('Batal')
->modalWidth(Width::Large)
->modalWidth(Width::ThreeExtraLarge)
->schema(fn ($livewire) => $livewire->studyGroupFormSchema())
->fillForm(function (StudyGroup $record): array {
return [