Closed theanadimukt closed 1 month ago
Hi @theanadimukt in the set up of section component you have $this->columnSpan('full'); This is the reason
It's easier to set the columnSpan to 1
Tabs::make('Tabs')`
->tabs([
Tabs\Tab::make('Tab 1')
->schema([
Section::make('Sunday')
->columnSpan(1)
->schema([
//
]),
Section::make('Monday')
->columnSpan(1)
->schema([
//
]),
Section::make('Tuesday')
->columnSpan(1)
->schema([
//
]),
])
->columns(3),
// ...
])
Yeah, just an API stylistic choice that usually you want Sections to be full width so that is the default
Thanks for quick response @gheorghelupu17 @danharrin and @team Thank you for creating such an awesome package ❤️
Package
filament/forms
Package Version
V3.0.0
Laravel Version
v11.27.2
Livewire Version
v3.0.0
PHP Version
PHP 8.2.0
Problem description
As per stated on Filament documentation Form - Tabs layout - Using Grid Columns Within A Tab, component inside tabs should display in numbers of given columns .
However when put Section component inside tab with 3 columns option, it doesn't work as expected, instead it renders section in full span. There should have three columns of three section, but it's rendering three rows.
Please check below screenshot
Expected behavior
Expected rendering should be something like below
Steps to reproduce
Alternatively,
Reproduction repository (issue will be closed if this is not valid)
https://github.com/theanadimukt/filament-tab-issue
Relevant log output
No response
Donate 💰 to fund this issue