Skip to content

Commit

Permalink
fix: thumb size (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Dec 4, 2024
1 parent c730e1e commit 9b191e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/Pages/ElectionTurnouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function candidates(): Collection
->get()
->map(fn (Candidate $candidate) => [
'name' => $candidate->name,
'image' => $candidate->getFirstMediaUrl(),
'image' => $candidate->getFirstMediaUrl('default', 'thumb'),
'party' => $candidate->party?->name,
]);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/VotesRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function getForLevel(

$data = [
'name' => $votable->acronym ?? $votable->name,
'image' => $votable->getFirstMediaUrl(),
'image' => $votable->getFirstMegetFirstMediaUrl('default', 'thumb'),
'votes' => (int) ensureNumeric($vote->votes),
'percent' => percent($vote->votes, $total),
'color' => hex2rgb($votable->color),
Expand Down

0 comments on commit 9b191e4

Please sign in to comment.