Racepicks: Fix accordion lag

This commit is contained in:
2025-02-27 00:55:52 +01:00
parent 750c89823d
commit 63ba16bd4d

View File

@ -69,7 +69,7 @@
</svelte:head> </svelte:head>
{#if data.currentrace} {#if data.currentrace}
{#await data.drivers then drivers} {#await Promise.all( [data.drivers, data.currentpickedusers, pickedusers, outstandingusers], ) then [drivers, currentpicked, picked, outstanding]}
<Accordion class="card mx-auto bg-surface-500 shadow" regionPanel="pt-0" width="w-full"> <Accordion class="card mx-auto bg-surface-500 shadow" regionPanel="pt-0" width="w-full">
<AccordionItem> <AccordionItem>
<svelte:fragment slot="lead"><ChequeredFlagIcon /></svelte:fragment> <svelte:fragment slot="lead"><ChequeredFlagIcon /></svelte:fragment>
@ -154,7 +154,6 @@
{/if} {/if}
<!-- Show users that have and have not picked yet --> <!-- Show users that have and have not picked yet -->
{#await Promise.all( [data.currentpickedusers, pickedusers, outstandingusers], ) then [currentpicked, picked, outstanding]}
<div class="mt-2 flex max-h-[155px] gap-2 overflow-y-scroll"> <div class="mt-2 flex max-h-[155px] gap-2 overflow-y-scroll">
<div class="card w-full min-w-40 p-2 shadow lg:max-w-40"> <div class="card w-full min-w-40 p-2 shadow lg:max-w-40">
<h1 class="text-nowrap font-bold"> <h1 class="text-nowrap font-bold">
@ -191,7 +190,6 @@
</div> </div>
</div> </div>
</div> </div>
{/await}
</div> </div>
</svelte:fragment> </svelte:fragment>
</AccordionItem> </AccordionItem>