Skip to content

Conversation

@ManukMinasyan
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 5, 2025 19:27
@ManukMinasyan ManukMinasyan merged commit b83f89d into 2.x Dec 5, 2025
1 check passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures that headless section types span the full column width in the form builder by adding the ->columnSpanFull() method call to the HEADLESS case in the SectionComponentFactory.

Key Changes:

  • Added ->columnSpanFull() method call to the Grid::make(12) for CustomFieldSectionType::HEADLESS case to match the behavior of SECTION and FIELDSET types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

->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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants