F
Filament10mo ago
Matthew

Split component only takes up half the form

public static function form(Form $form): Form
{
return $form
// ->extraAttributes(['max-width' => '100%'])
->schema([
Split::make([
Section::make([
TextInput::make('title'),
Textarea::make('content'),
]),
Section::make([
Toggle::make('is_published'),
Toggle::make('is_featured'),
])->grow(false),
])->from('md')
]);
}
public static function form(Form $form): Form
{
return $form
// ->extraAttributes(['max-width' => '100%'])
->schema([
Split::make([
Section::make([
TextInput::make('title'),
Textarea::make('content'),
]),
Section::make([
Toggle::make('is_published'),
Toggle::make('is_featured'),
])->grow(false),
])->from('md')
]);
}
No description
Solution:
try Split::make([])->columnSpanFull()...
Jump to solution
2 Replies
Solution
Lara Zeus
Lara Zeus10mo ago
try Split::make([])->columnSpanFull()
Matthew
MatthewOP10mo ago
Thanks! I thought I tried it :p
Want results from more Discord servers?
Add your server