Skip to content

Commit

Permalink
Move countdown to new line
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed May 14, 2024
1 parent 3b85404 commit e71b4b1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/SingleTripInfo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,13 @@
</span>
{/if}


</p>
<p class="ml-auto text-right">
{#if stoptime.rt_arrival_time != null || stoptime.scheduled_arrival_time_unix_seconds != null}
<TimeDiff diff={((stoptime.scheduled_arrival_time_unix_seconds || stoptime.rt_arrival_time) - (current_time / 1000))}
/>

<TimeDiff diff={((stoptime.scheduled_arrival_time_unix_seconds || stoptime.rt_arrival_time) - (current_time / 1000))}
/>

{/if}
</p>
Expand Down Expand Up @@ -365,8 +368,11 @@
</span>
{/if}


</p>
<p class="ml-auto text-right">
{#if stoptime.rt_departure_time != null || stoptime.scheduled_departure_time_unix_seconds != null}

<TimeDiff diff={(stoptime.scheduled_departure_time_unix_seconds || stoptime.rt_departure_time) - (current_time / 1000)}
/>

Expand Down

0 comments on commit e71b4b1

Please sign in to comment.