Skip to content

Commit 0d74dc2

Browse files
committed
Restyled badges to use "md" size instead of "sm"
1 parent 28227c8 commit 0d74dc2

15 files changed

+28
-21
lines changed

resources/views/livewire/backups/manage.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="flex-1 grow max-w-full min-w-max">
1616
{{ __('backup.backups') }}
1717
@if (count($backups) > 0)
18-
<x-ts-badge color="emerald" text="{{ count($backups) }}" />
18+
<x-ts-badge color="emerald" sm text="{{ count($backups) }}" />
1919
@endif
2020
</div>
2121

resources/views/livewire/password-generator.blade.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<div class="flex justify-between">
4545
{{-- Entropy badges --}}
4646
<div>
47-
<x-ts-badge :text="$estimatedEntropy" md :color="$passwordColor" />
48-
<x-ts-badge :text="$shannonEntropy" md :color="$passwordColor" />
47+
<x-ts-badge :color="$passwordColor" :text="$estimatedEntropy" md />
48+
<x-ts-badge :color="$passwordColor" :text="$shannonEntropy" md />
4949
</div>
5050

5151
{{-- Password Strength badge --}}
@@ -61,7 +61,8 @@
6161
@endif
6262

6363
<div class="flex items-center justify-between p-4 rounded-b">
64-
<x-ts-link href="https://haveibeenpwned.com/" target="_blank" rel="noopener noreferrer" class="text-sm text-blue-600 dark:text-blue-400 hover:underline">
64+
<x-ts-link href="https://haveibeenpwned.com/" target="_blank" rel="noopener noreferrer" class="text-md text-blue-600 dark:text-blue-400 hover:underline">
65+
<x-ts-icon icon="tabler.key-off" class="inline-block size-5 me-2" />
6566
{{ __('app.check_breach') }}
6667
</x-ts-link>
6768

resources/views/livewire/people/ancestors.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</div>
3232

3333
<div class="flex-1 grow max-w-full min-w-max text-end">
34+
@if (count($ancestors) > 1)
35+
<x-ts-badge color="emerald" sm class="me-2" text="{{ count($ancestors) - 1 }}" />
36+
@endif
3437
<x-ts-icon icon="tabler.binary-tree" class="inline-block size-5 rotate-180" />
3538
</div>
3639
</div>

resources/views/livewire/people/children.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex-1 grow max-w-full min-w-max">
55
{{ __('person.children') }}
66
@if (count($person->couples) > 0)
7-
<x-ts-badge color="emerald" text="{{ count($children) }}" />
7+
<x-ts-badge color="emerald" sm text="{{ count($children) }}" />
88
@endif
99
</div>
1010

resources/views/livewire/people/datasheet.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
<td colspan="4">
205205
{{ __('person.partners') }}
206206
@if (count($person->couples) > 0)
207-
<x-ts-badge color="emerald" text="{{ count($person->couples) }}" />
207+
<x-ts-badge color="emerald" sm text="{{ count($person->couples) }}" />
208208
@endif
209209
</td>
210210
</tr>
@@ -249,7 +249,7 @@
249249
<td colspan="4">
250250
{{ __('person.children') }}
251251
@if (count($person->childrenNaturalAll()) > 0)
252-
<x-ts-badge color="emerald" text="{{ count($person->childrenNaturalAll()) }}" />
252+
<x-ts-badge color="emerald" sm text="{{ count($person->childrenNaturalAll()) }}" />
253253
@endif
254254
</td>
255255
</tr>
@@ -274,7 +274,7 @@
274274
<td colspan="4">
275275
{{ __('person.siblings') }}
276276
@if (count($person->siblings()) > 0)
277-
<x-ts-badge color="emerald" text="{{ count($person->siblings()) }}" />
277+
<x-ts-badge color="emerald" sm text="{{ count($person->siblings()) }}" />
278278
@endif
279279
</td>
280280
</tr>
@@ -300,7 +300,7 @@
300300
<td colspan="4">
301301
{{ __('person.files') }}
302302
@if (count($files) > 0)
303-
<x-ts-badge color="emerald" text="{{ count($files) }}" />
303+
<x-ts-badge color="emerald" sm text="{{ count($files) }}" />
304304
@endif
305305
</td>
306306
</tr>
@@ -325,7 +325,7 @@
325325
<td colspan="4">
326326
{{ __('person.photos') }}
327327
@if (count($images) > 0)
328-
<x-ts-badge color="emerald" text="{{ count($images) }}" />
328+
<x-ts-badge color="emerald" sm text="{{ count($images) }}" />
329329
@endif
330330
</td>
331331
</tr>

resources/views/livewire/people/descendants.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</div>
3232

3333
<div class="flex-1 grow max-w-full min-w-max text-end">
34+
@if (count($descendants) > 1)
35+
<x-ts-badge color="emerald" sm class="me-2" text="{{ count($descendants) - 1 }}" />
36+
@endif
3437
<x-ts-icon icon="tabler.binary-tree" class="inline-block size-5" />
3538
</div>
3639
</div>

resources/views/livewire/people/edit/files.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="flex-1 grow max-w-full min-w-max">
66
{{ __('person.files') }}
77
@if ($files->count() > 0)
8-
<x-ts-badge color="emerald" text="{{ count($files) }}" />
8+
<x-ts-badge color="emerald" sm text="{{ count($files) }}" />
99
@endif
1010
</div>
1111

resources/views/livewire/people/edit/photos.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="flex-1 grow max-w-full min-w-max">
66
{{ __('person.photos') }}
77
@if (count($photos) > 0)
8-
<x-ts-badge color="emerald" text="{{ count($photos) }}" />
8+
<x-ts-badge color="emerald" sm text="{{ count($photos) }}" />
99
@endif
1010
</div>
1111

resources/views/livewire/people/files.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex-1 grow max-w-full min-w-max">
55
{{ __('person.files') }}
66
@if ($person->countFiles() > 0)
7-
<x-ts-badge color="emerald" text="{{ $person->countFiles() }}" />
7+
<x-ts-badge color="emerald" sm text="{{ $person->countFiles() }}" />
88
@endif
99
</div>
1010

resources/views/livewire/people/history.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class="print:break-before-page flex flex-col rounded-sm bg-white shadow-[0_2px_1
77
<div class="flex-1 grow max-w-full min-w-max">
88
{{ __('app.history') }}
99
@if (count($activities) > 0)
10-
<x-ts-badge color="emerald" text="{{ count($activities) }}" />
10+
<x-ts-badge color="emerald" sm text="{{ count($activities) }}" />
1111
@endif
1212
</div>
1313

0 commit comments

Comments
 (0)