Skip to content

Commit

Permalink
fix(web): intersection observer not triggered to load more people (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Oct 18, 2024
1 parent 4a2a7b7 commit c9c0212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit c9c0212

Please sign in to comment.