Skip to content

Commit 6097b11

Browse files
authored
Merge pull request #74 from backstagephp/fix/opens-clicks-badge-styling
Style opens and clicks as centered badges
2 parents 84d3b25 + 1949581 commit 6097b11

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Resources/MailResource.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,16 @@ public static function table(Table $table): Table
390390
->searchable(),
391391
TextColumn::make('opens')
392392
->label(__('Opens'))
393+
->badge()
394+
->color('info')
395+
->alignCenter()
393396
->tooltip(fn (Mail $record) => __('Last opened at :date', ['date' => $record->last_opened_at?->format('d-m-Y H:i')]))
394397
->sortable(),
395398
TextColumn::make('clicks')
396399
->label(__('Clicks'))
400+
->badge()
401+
->color('clicked')
402+
->alignCenter()
397403
->tooltip(fn (Mail $record) => __('Last clicked at :date', ['date' => $record->last_clicked_at?->format('d-m-Y H:i')]))
398404
->sortable(),
399405
TextColumn::make('sent_at')

0 commit comments

Comments
 (0)