Aktualizacja aplikacji i scenerii

This commit is contained in:
2021-06-17 18:28:53 +02:00
parent fa493c5fa0
commit 5cba2994dc
8 changed files with 101 additions and 75 deletions
+18 -11
View File
@@ -188,6 +188,20 @@
@error="onImageError"
/>
</span>
<div class="driver-cars">
{{
train.cars.length == 0
? "EZT"
: `${train.cars.length} wagon${
train.cars.length % 10 >= 5
? "ów"
: train.cars.length == 1
? ""
: "y"
}`
}}
</div>
</span>
<span class="stats">
@@ -242,17 +256,6 @@
v-if="train.timetableData"
v-show="showedSchedule == train.timetableData.timetableId"
>
<!-- <div class="train_cars">
<span v-for="(car, i) in train.cars" :key="i">
<img
class="car-image"
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${car}.png`"
alt="image-car"
@error="onImageError"
/>
</span>
</div> -->
<TrainSchedule
:followingStops="train.timetableData.followingStops"
:currentStationName="train.currentStationName"
@@ -506,6 +509,10 @@ img.train-image {
width: 100%;
text-align: center;
}
&-cars {
margin-top: 0.5em;
}
}
.stats {