Skip to content

Commit 50c6095

Browse files
committed
feat: update default column span from 1 to 12 across forms and infolists
1 parent 0673f3e commit 50c6095

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/Filament/Integration/Builders/FormContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class FormContainer extends Grid
1313

1414
private array $only = [];
1515

16-
public static function make(array|int|null $columns = 1): static
16+
public static function make(array|int|null $columns = 12): static
1717
{
1818
$container = new self($columns);
1919

src/Filament/Integration/Builders/InfolistContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class InfolistContainer extends Grid
2020

2121
private bool $withoutSections = false;
2222

23-
public static function make(array|int|null $columns = 1): static
23+
public static function make(array|int|null $columns = 12): static
2424
{
2525
$container = new self($columns);
2626

src/Filament/Integration/Factories/SectionInfolistsFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ public function create(CustomFieldSection $customFieldSection): Section|Fieldset
1616
{
1717
return match ($customFieldSection->type) {
1818
CustomFieldSectionType::SECTION => Section::make($customFieldSection->name)
19+
->columns(12)
1920
->description($customFieldSection->description),
2021

21-
CustomFieldSectionType::FIELDSET => Fieldset::make($customFieldSection->name),
22+
CustomFieldSectionType::FIELDSET => Fieldset::make($customFieldSection->name)
23+
->columns(12),
2224

23-
CustomFieldSectionType::HEADLESS => Grid::make($customFieldSection->column_span ?? 1),
25+
CustomFieldSectionType::HEADLESS => Grid::make($customFieldSection->column_span ?? 12),
2426
};
2527
}
2628
}

0 commit comments

Comments
 (0)