Skip to content

Commit

Permalink
Fit and Finish: TripDetailsPane
Browse files Browse the repository at this point in the history
* Add some spacing between the stop name and time
* Prevent the time from ever wrapping
* Replace some custom Tailwind classes with built-in near equivalents
  • Loading branch information
aaronbrethorst committed Nov 24, 2024
1 parent f54012a commit 21f914f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/oba/TripDetailsPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@
/>
{/if}
</div>
<div class="ml-4 flex w-full items-center justify-between">
<div class="text-md font-semibold text-[#000000] dark:text-white">
<div class="ml-4 flex w-full items-center justify-between space-x-1">
<div class="text-md font-semibold dark:text-white">
{stopInfo[tripStop.stopId] ? stopInfo[tripStop.stopId].name : tripStop.stopId}
</div>
<div class="text-sm text-[#86858B]">{convertUnixToTime(tripStop.arrivalTime)}</div>
<div class="whitespace-nowrap text-sm text-gray-500">
{convertUnixToTime(tripStop.arrivalTime)}
</div>
</div>
</div>
{/each}
Expand Down

0 comments on commit 21f914f

Please sign in to comment.