chore: gray out loco specs in the subsequent rows; stopTime correction

This commit is contained in:
2025-01-25 20:15:37 +01:00
parent dcaf0d0ea3
commit bb26082358
+7 -7
View File
@@ -58,10 +58,10 @@
<table class="h-full"> <table class="h-full">
<tbody> <tbody>
<tr> <tr>
<td class="align-top">{{ row.arrivalKm }}</td> <td class="align-top">{{ row.arrivalKm == '0.000' ? '' : row.arrivalKm }}</td>
</tr> </tr>
<tr> <tr>
<td class="align-bottom">{{ row.departureKm }}</td> <td class="align-bottom">{{ row.departureKm == '0.000' ? '' : row.departureKm }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -121,7 +121,7 @@
<div class="flex flex-col h-full justify-between p-1"> <div class="flex flex-col h-full justify-between p-1">
<div :class="{ 'font-bold': row.isMain }"> <div :class="{ 'font-bold': row.isMain }">
{{ row.pointName }} {{ row.pointName }}
<span v-if="row.stopTime"> ; {{ row.stopType }}</span> <span v-if="row.stopTime"> ; {{ row.stopType || 'pt' }}</span>
</div> </div>
<div class="flex justify-between"> <div class="flex justify-between">
@@ -157,7 +157,7 @@
</div> </div>
</td> </td>
<td class="p-0 text-center border border-white print:border-black relative" style="height: 90px"> <td class="p-0 text-center border border-white print:border-black relative h-24 text-sm" :class="{ 'text-stone-400 ': i > 0 }">
<table class="h-full"> <table class="h-full">
<tbody> <tbody>
<tr class="border-b-[1px] border-b-white print:border-b-black"> <tr class="border-b-[1px] border-b-white print:border-b-black">
@@ -173,7 +173,7 @@
</table> </table>
</td> </td>
<td class="p-0 text-center border border-white print:border-black relative"> <td class="p-0 text-center border border-white print:border-black relative" :class="{ 'text-stone-400 ': i > 0 }">
<div class="absolute top-0 left-0 w-full h-full"> <div class="absolute top-0 left-0 w-full h-full">
<table class="h-full"> <table class="h-full">
<tbody> <tbody>
@@ -188,7 +188,7 @@
</div> </div>
</td> </td>
<td class="text-center border border-white print:border-black">70</td> <td class="text-center border border-white print:border-black" :class="{ 'text-stone-400 ': i > 0 }">70</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -321,7 +321,7 @@ export default defineComponent({
pointName: stop.stopNameRAW, pointName: stop.stopNameRAW,
scheduledArrivalDate: stop.arrivalTimestamp ? new Date(stop.arrivalTimestamp) : null, scheduledArrivalDate: stop.arrivalTimestamp ? new Date(stop.arrivalTimestamp) : null,
scheduledDepartureDate: stop.departureTimestamp ? new Date(stop.departureTimestamp) : null, scheduledDepartureDate: stop.departureTimestamp ? new Date(stop.departureTimestamp) : null,
stopTime: stop.stopTime ?? 0, stopTime: stop.stopTime ? (stop.departureTimestamp - stop.arrivalTimestamp) / 60000 : 0,
stopType: stop.stopType, stopType: stop.stopType,
sceneryName: currentPath.sceneryName, sceneryName: currentPath.sceneryName,
realLine: '-', realLine: '-',