1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

fix(web): intersection observer not triggered to load more people (#13589)

This commit is contained in:
Alex 2024-10-18 15:53:47 -05:00 committed by GitHub
parent 4a2a7b7735
commit c9c0212ca9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@
{@const hidden = personIsHidden[person.id]}
<button
type="button"
class="group relative"
class="group relative w-full h-full"
on:click={() => (personIsHidden[person.id] = !hidden)}
aria-pressed={hidden}
aria-label={person.name ? $t('hide_named_person', { values: { name: person.name } }) : $t('hide_person')}

View file

@ -23,7 +23,7 @@
<div class="w-full grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-7 2xl:grid-cols-9 gap-1">
{#each people as person, index (person.id)}
{#if hasNextPage && index === people.length - 1}
<div bind:this={lastPersonContainer} class="contents">
<div bind:this={lastPersonContainer}>
<slot {person} {index} />
</div>
{:else}