F
Filamentβ€’15mo ago
morty

Using split in an infolist is not spanning browser width.

See screenshot, for some reason the first section of my split component doesn't grow. On my panel provider I use max width ->maxContentWidth(MaxWidth::Full) Here is my infolist schema:
return $infolist
->schema([
Split::make([
Section::make('General')
->description('Name and address information')
->columns(2)
->schema([
TextEntry::make('name_and_address_id')
->label('ID'),
TextEntry::make('name')
->label('Name'),
TextEntry::make('long_name')
->label('Extended name'),
TextEntry::make('address_lines')
->label('Address')
->listWithLineBreaks(),
TextEntry::make('city')
->label('City'),
TextEntry::make('province')
->label('Province'),
TextEntry::make('country_code')
->label('Country'),
TextEntry::make('zip_postal_code')
->label('Postal'),
]),
Section::make([
TextEntry::make('add_date')->label('Created')->dateTime(),
TextEntry::make('change_date')->label('Updated')->dateTime(),
])->grow(false),
])->from('md'),
]);
return $infolist
->schema([
Split::make([
Section::make('General')
->description('Name and address information')
->columns(2)
->schema([
TextEntry::make('name_and_address_id')
->label('ID'),
TextEntry::make('name')
->label('Name'),
TextEntry::make('long_name')
->label('Extended name'),
TextEntry::make('address_lines')
->label('Address')
->listWithLineBreaks(),
TextEntry::make('city')
->label('City'),
TextEntry::make('province')
->label('Province'),
TextEntry::make('country_code')
->label('Country'),
TextEntry::make('zip_postal_code')
->label('Postal'),
]),
Section::make([
TextEntry::make('add_date')->label('Created')->dateTime(),
TextEntry::make('change_date')->label('Updated')->dateTime(),
])->grow(false),
])->from('md'),
]);
No description
4 Replies
morty
mortyOPβ€’15mo ago
Here is a screenshot without the split component working correctly.
No description
morty
mortyOPβ€’15mo ago
Worked. Thanks. Didn't see that post πŸ˜„ 7m ago
Lara Zeus
Lara Zeusβ€’15mo ago
prefect πŸ™‚

Did you find this page helpful?