Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/dist/custom-fields.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function create(CustomFieldSection $customFieldSection): Section|Fieldset
->columnSpanFull()
->label($customFieldSection->name)
->columns(12),
CustomFieldSectionType::HEADLESS => Grid::make(12),
CustomFieldSectionType::HEADLESS => Grid::make(12)->columnSpanFull(),
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HEADLESS case in SectionInfolistsFactory.php (line 27) is missing the ->columnSpanFull() call that was just added here. For consistency, the same fix should be applied there:

CustomFieldSectionType::HEADLESS => Grid::make($customFieldSection->column_span ?? 12)->columnSpanFull(),

This ensures both the form builder and infolists factory handle headless sections consistently.

Suggested change
CustomFieldSectionType::HEADLESS => Grid::make(12)->columnSpanFull(),
CustomFieldSectionType::HEADLESS => Grid::make($customFieldSection->column_span ?? 12)->columnSpanFull(),

Copilot uses AI. Check for mistakes.
};
}
}