Why is my tab only 50% width with no column config?
return $form->schema([
Tabs::make('Label')
->tabs([
Tabs\Tab::make('Details')
->schema(([
Components\Section::make('Details')->schema([
Components\TextInput::make('title')->autofocus(),
Components\Textarea::make('excerpt'),
Components\FileUpload::make('hero_image')->image()->imageEditor()
]),
Components\Section::make('Options')
->icon('heroicon-s-cog-6-tooth')
->schema([
Components\Toggle::make('published'),
Components\DateTimePicker::make('published_at'),
Components\Select::make('layout')->options([
'default' => 'Default',
'featured' => 'Featured',
])->default('default'),
Components\Toggle::make('early_access'),
Components\Toggle::make('pro_series'),
])
]))
])
]);
return $form->schema([
Tabs::make('Label')
->tabs([
Tabs\Tab::make('Details')
->schema(([
Components\Section::make('Details')->schema([
Components\TextInput::make('title')->autofocus(),
Components\Textarea::make('excerpt'),
Components\FileUpload::make('hero_image')->image()->imageEditor()
]),
Components\Section::make('Options')
->icon('heroicon-s-cog-6-tooth')
->schema([
Components\Toggle::make('published'),
Components\DateTimePicker::make('published_at'),
Components\Select::make('layout')->options([
'default' => 'Default',
'featured' => 'Featured',
])->default('default'),
Components\Toggle::make('early_access'),
Components\Toggle::make('pro_series'),
])
]))
])
]);
3 Replies