F
Filament10mo ago
Matthew

Cannot change width of section in split layout

public function form(Form $form): Form
{
return $form
// ->extraAttributes(['max-width' => '100%'])
->schema([
Split::make([
Section::make([

])->columns(2),
Section::make([

])->grow(false)->extraAttributes(['width'=>'20%']),
])->from('sm')
])->statePath('data');
}
public function form(Form $form): Form
{
return $form
// ->extraAttributes(['max-width' => '100%'])
->schema([
Split::make([
Section::make([

])->columns(2),
Section::make([

])->grow(false)->extraAttributes(['width'=>'20%']),
])->from('sm')
])->statePath('data');
}
The section on the right, is taking too much space and I want to reduce its width, but it doesnt work. Any ideas?
2 Replies
Matthew
MatthewOP10mo ago
bump
Tieme
Tieme10mo ago
What happens if you try
->extraAttributes(['class'=>'max-w-[20%]'])
->extraAttributes(['class'=>'max-w-[20%]'])
Make sure to run NPM run build and have a custom theme setup.
Want results from more Discord servers?
Add your server