F
Filament16mo ago
Thijmen

Table column misaligned

Why is this ToggleColumn so misaligned?
Tables\Columns\TextColumn::make('type')
->searchable(),
Tables\Columns\TextColumn::make('integration_id')
->label('Integratie ID')
->searchable(),
Tables\Columns\ToggleColumn::make('active')
->label('Actief')
->searchable(),
Tables\Columns\TextInputColumn::make('interval')
->label('Interval (minuten)')
->searchable(),
Tables\Columns\TextColumn::make('type')
->searchable(),
Tables\Columns\TextColumn::make('integration_id')
->label('Integratie ID')
->searchable(),
Tables\Columns\ToggleColumn::make('active')
->label('Actief')
->searchable(),
Tables\Columns\TextInputColumn::make('interval')
->label('Interval (minuten)')
->searchable(),
No description
3 Replies
Hugo
Hugo16mo ago
Try to add : ->alignCenter() ?
Thijmen
ThijmenOP16mo ago
Still isnt quite centered
No description
Hugo
Hugo16mo ago
It's hard to do better... There's a margin on the toggle button that causes this lag. You'd have to override the toggleButton view (or create a custom Column) and remove the class that adds this margin (ms-4).
Want results from more Discord servers?
Add your server