Skip to content

Commit 1d47c03

Browse files
authored
Merge pull request #20 from codebar-ag/main
main/production
2 parents 5bf4c1a + 00823b1 commit 1d47c03

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Actions/ViewDataAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public function contacts(string $locale): object
5757
ContactSectionEnum::EMPLOYEE_ADMINISTRATION,
5858
ContactSectionEnum::COLLABORATIONS,
5959
ContactSectionEnum::BOARD_MEMBERS,
60-
])->mapWithKeys(function (string $section) use ($publishedContacts, $locale) {
60+
])->mapWithKeys(function (string $section) use ($publishedContacts, $locale): array {
6161
$contacts = $publishedContacts
62-
->filter(function ($contact) use ($section) {
62+
->filter(function (Contact $contact) use ($section): bool {
6363
$sections = $contact->sections ?? [];
6464

6565
return array_key_exists($section, $sections);
6666
})
67-
->map(fn ($contact) => ContactDTO::fromModel($contact, $section, $locale));
67+
->map(fn (Contact $contact) => ContactDTO::fromModel($contact, $section, $locale));
6868

6969
return [$section => $contacts->values()];
7070
})->all();

resources/views/app/about-us/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<x-list-image-card
6969
:name="$contact->name"
7070
:image="$contact->image"
71-
image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/>
71+
image-container-class-attributes="h-20 w-20 flex-shrink-0 overflow-hidden"/>
7272
@endforeach
7373
</x-list-grid>
7474
</x-section>

resources/views/components/list-image-card.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props([
22
'image',
3-
'imageContainerClassAttributes' => 'h-30 w-auto flex-shrink-0 overflow-hidden',
3+
'imageContainerClassAttributes' => 'h-30 h-30 flex-shrink-0 overflow-hidden',
44
'name',
55
'role' => null,
66
'icons' => [],

0 commit comments

Comments
 (0)