fix(web): Fix face thumbnail when swapping merge direction (#30466)

This commit is contained in:
Lucas authored and GitHub committed 2026-08-03 12:28:18 +02:00
1 parent fb4a08c17a
commit 4082fbf232
2 files changed
+24 -16

No files matched your search

@@ -63,13 +63,16 @@
<div class="flex items-center justify-center gap-2 py-4 md:h-36">
{#if !choosePersonToMerge}
<div class="flex size-20 items-center px-1 md:size-24 md:px-2">
<ImageThumbnail
circle
shadow
url={getPeopleThumbnailUrl(personToMerge)}
altText={personToMerge.name}
widthStyle="100%"
/>
<!-- Trigger a re-render on person change as <Image> captures only the first src -->
{#key personToMerge.id}
<ImageThumbnail
circle
shadow
url={getPeopleThumbnailUrl(personToMerge)}
altText={personToMerge.name}
widthStyle="100%"
/>
{/key}
</div>
<div class="grid grid-rows-3">
@@ -101,14 +104,16 @@
}
}}
>
<ImageThumbnail
border={potentialMergePeople.length > 0}
circle
shadow
url={getPeopleThumbnailUrl(personToBeMergedInto)}
altText={personToBeMergedInto.name}
widthStyle="100%"
/>
{#key personToBeMergedInto.id}
<ImageThumbnail
border={potentialMergePeople.length > 0}
circle
shadow
url={getPeopleThumbnailUrl(personToBeMergedInto)}
altText={personToBeMergedInto.name}
widthStyle="100%"
/>
{/key}
</button>
{:else}
<div class="grid w-full grid-cols-1 gap-2">
@@ -40,7 +40,10 @@
class:dark:border-immich-dark-primary={border}
class:border-immich-primary={border}
>
<ImageThumbnail {circle} url={getPeopleThumbnailUrl(person)} altText={person.name} widthStyle="100%" shadow />
<!-- Trigger a re-render on person change as <Image> captures only the first src -->
{#key person.id}
<ImageThumbnail {circle} url={getPeopleThumbnailUrl(person)} altText={person.name} widthStyle="100%" shadow />
{/key}
</div>
<div