Skip to content

Commit

Permalink
even better
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronClaydon committed Feb 22, 2024
1 parent d495637 commit 093c208
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/DetailedInformationRail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>

<div class="text-gray-900 dark:text-gray-200 text-base">
<div class="inline-block mr-4">
<div class="inline-block mr-4 text-sm font-medium text-gray-500">
<span v-if="journey.DetailedRailInformation.VehicleTypeName !== ''">
{{ journey.DetailedRailInformation.VehicleTypeName }}
</span>
Expand Down
33 changes: 17 additions & 16 deletions src/views/Journeys/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
<Alert type="error" class="mt-4" v-if="error !== undefined">{{ error }}</Alert>
<div v-if="loading">Loading...</div>
<div v-else class="h-full">
<Page-Title>
<h1 class="py-2 text-xl font-medium leading-tight text-gray-900 dark:text-gray-200">
<DepartureTypeIcon :journey="journey"/> {{ journey.DestinationDisplay }}
<div>
<ServiceIcon
v-if="journey.Service!==undefined"
:service="journey.Service"
/>
</div>
</h1>

<p
class="text-sm font-medium text-gray-500"
v-if="journey.RealtimeJourney && journey.RealtimeJourney.ActivelyTracked"
>
<span v-if="journey.RealtimeJourney.VehicleLocationDescription">
{{ journey.RealtimeJourney.VehicleLocationDescription }}
</span>
</p>
</Page-Title>
<div>
<ServiceIcon
v-if="journey.Service!==undefined"
:service="journey.Service"
/>
</div>

<p
class="text-sm font-medium text-gray-500"
v-if="journey.RealtimeJourney && journey.RealtimeJourney.ActivelyTracked"
>
<span v-if="journey.RealtimeJourney.VehicleLocationDescription">
{{ journey.RealtimeJourney.VehicleLocationDescription }}
</span>
</p>

<div v-if="!journey?.RealtimeJourney?.Cancelled">
<DetailedInformationRail :journey="journey"/>
Expand Down

0 comments on commit 093c208

Please sign in to comment.