F
Filamentβ€’3mo 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
mortyβ€’3mo ago
Here is a screenshot without the split component working correctly.
No description
morty
mortyβ€’3mo ago
Worked. Thanks. Didn't see that post πŸ˜„ 7m ago
Lara Zeus
Lara Zeusβ€’3mo ago
prefect πŸ™‚