Skip to content

Commit 87c54d6

Browse files
fix: show asset count for unassigned faces (#12871)
1 parent e748945 commit 87c54d6

File tree

1 file changed

+4
-11
lines changed
  • web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]

1 file changed

+4
-11
lines changed

Diff for: web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte

+4-11
Original file line numberDiff line numberDiff line change
@@ -486,17 +486,10 @@
486486
<div
487487
class="flex flex-col justify-center text-left px-4 h-14 text-immich-primary dark:text-immich-dark-primary"
488488
>
489-
{#if person.name}
490-
<p class="w-40 sm:w-72 font-medium truncate">{person.name}</p>
491-
<p class="absolute w-fit text-sm text-gray-500 dark:text-immich-gray bottom-0">
492-
{$t('assets_count', { values: { count: numberOfAssets } })}
493-
</p>
494-
{:else}
495-
<p class="font-medium">{$t('add_a_name')}</p>
496-
<p class="text-sm text-gray-500 dark:text-immich-gray">
497-
{$t('find_them_fast')}
498-
</p>
499-
{/if}
489+
<p class="w-40 sm:w-72 font-medium truncate">{person.name || $t('add_a_name')}</p>
490+
<p class="absolute w-fit text-sm text-gray-500 dark:text-immich-gray bottom-0">
491+
{$t('assets_count', { values: { count: numberOfAssets } })}
492+
</p>
500493
</div>
501494
</button>
502495
</div>

0 commit comments

Comments
 (0)