Skip to content

Commit

Permalink
Merge pull request #154 from OneBusAway/fix/arrival-departure-update
Browse files Browse the repository at this point in the history
Fix/arrival-departure-update
  • Loading branch information
aaronbrethorst authored Dec 3, 2024
2 parents d160d26 + 88c37c7 commit 9530044
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/LoadingSpinner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</script>

<div
class="absolute inset-0 z-10 flex items-center justify-center bg-neutral-800 bg-opacity-80 md:rounded-lg"
class="absolute inset-0 z-50 flex items-center justify-center bg-neutral-800 bg-opacity-80 md:rounded-lg"
>
<div class="flex items-center text-white">
<svg
Expand Down
30 changes: 18 additions & 12 deletions src/components/stops/StopPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,24 @@
<p>{$t('no_arrivals_or_departures_in_next_30_minutes')}</p>
</div>
{:else}
<Accordion {handleAccordionSelectionChanged}>
{#each arrivalsAndDepartures.arrivalsAndDepartures as arrival}
<AccordionItem data={arrival}>
{#snippet header()}
<span>
<ArrivalDeparture arrivalDeparture={arrival} />
</span>
{/snippet}
<TripDetailsPane {stop} tripId={arrival.tripId} serviceDate={arrival.serviceDate} />
</AccordionItem>
{/each}
</Accordion>
{#key arrivalsAndDepartures.arrivalsAndDepartures}
<Accordion {handleAccordionSelectionChanged}>
{#each arrivalsAndDepartures.arrivalsAndDepartures as arrival}
<AccordionItem data={arrival}>
{#snippet header()}
<span>
<ArrivalDeparture arrivalDeparture={arrival} />
</span>
{/snippet}
<TripDetailsPane
{stop}
tripId={arrival.tripId}
serviceDate={arrival.serviceDate}
/>
</AccordionItem>
{/each}
</Accordion>
{/key}
{/if}
</div>
{/if}
Expand Down

0 comments on commit 9530044

Please sign in to comment.