From 128d653fc619be4ead3483b9d40ce6043ff21df6 Mon Sep 17 00:00:00 2001 From: Curtis Lowder Date: Wed, 26 Feb 2025 21:06:41 -0600 Subject: [PATCH] fix(web): update search modal to not jump around (#16308) * fix(web): update search modal to not jump around Search People selection will change size while loading. This causes the search modal to jump around as the people load in. * loading spinner size * remove unsued code --------- Co-authored-by: cwlowder Co-authored-by: Alex Tran --- .../search-bar/search-people-section.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/shared-components/search-bar/search-people-section.svelte b/web/src/lib/components/shared-components/search-bar/search-people-section.svelte index d06c4dc5c0d..ed17d78af30 100644 --- a/web/src/lib/components/shared-components/search-bar/search-people-section.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-people-section.svelte @@ -10,6 +10,7 @@ import { t } from 'svelte-i18n'; import SingleGridRow from '$lib/components/shared-components/single-grid-row.svelte'; import type { SvelteSet } from 'svelte/reactivity'; + import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte'; interface Props { selectedPeople: SvelteSet; @@ -52,13 +53,17 @@ }; -{#await peoplePromise then people} +{#await peoplePromise} +
+ +
+{:then people} {#if people && people.length > 0} {@const peopleList = showAllPeople ? filterPeople(people, name) : filterPeople(people, name).slice(0, numberOfPeople)} -
+

{$t('people').toUpperCase()}