F
Filament5mo ago
Baspa

Stack component does not seem to respect `alignment`

In my table component I've used a Split and Stack and set the alignment of the stack to Between. But when I look at the output the justify-start is still used?
return $table
->columns([
Split::make([
Tables\Columns\TextColumn::make('title')
->searchable()
->sortable(),
Stack::make([
Tables\Columns\ImageColumn::make('author.image')
->grow(false)
->label('Afbeelding'),
Tables\Columns\TextColumn::make('author.name')
->label('Auteur')
->grow(false)
->searchable()
->sortable(),
])->alignment(Alignment::Between)->space(2),
Tables\Columns\TextColumn::make('published_at')
->label('Publicatiedatum')
->searchable()
->sortable(),
]),
])
return $table
->columns([
Split::make([
Tables\Columns\TextColumn::make('title')
->searchable()
->sortable(),
Stack::make([
Tables\Columns\ImageColumn::make('author.image')
->grow(false)
->label('Afbeelding'),
Tables\Columns\TextColumn::make('author.name')
->label('Auteur')
->grow(false)
->searchable()
->sortable(),
])->alignment(Alignment::Between)->space(2),
Tables\Columns\TextColumn::make('published_at')
->label('Publicatiedatum')
->searchable()
->sortable(),
]),
])
No description
3 Replies
Baspa
BaspaOP5mo ago
I want the image and text both on the same row. Is that possible?
Baspa
BaspaOP5mo ago
Thanks!
Want results from more Discord servers?
Add your server