chore: removed displaying exit track speeds if they are the same as the base ones

This commit is contained in:
2025-09-06 13:42:00 +02:00
parent c24f691693
commit e784202a36
2 changed files with 18 additions and 7 deletions
@@ -43,8 +43,12 @@
<span :class="{ 'no-catenary': !route.isElectric, internal: route.isInternal }"> <span :class="{ 'no-catenary': !route.isElectric, internal: route.isInternal }">
{{ route.routeName }} {{ route.routeName }}
</span> </span>
<span v-if="route.routeSpeed" class="speed">{{ route.routeSpeed }}</span> <span v-if="route.routeSpeed" class="speed">
<span v-if="route.routeSpeedExit" class="speed">| {{ route.routeSpeedExit }}</span> <span>{{ route.routeSpeed }}</span>
<span v-if="route.routeSpeedExit && route.routeSpeedExit != route.routeSpeed">
| {{ route.routeSpeedExit }}
</span>
</span>
<span v-if="route.routeLength" class="length"> <span v-if="route.routeLength" class="length">
{{ (route.routeLength / 1000).toFixed(1) + 'km' }} {{ (route.routeLength / 1000).toFixed(1) + 'km' }}
</span> </span>
@@ -156,7 +160,7 @@ ul.routes-list {
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
span { & > span {
padding: 0.2em; padding: 0.2em;
background-color: #007599; background-color: #007599;
font-weight: bold; font-weight: bold;
+11 -4
View File
@@ -68,7 +68,8 @@
<span> <span>
| |
{{ {{
stop.departureLineInfo.routeSpeedExit stop.departureLineInfo.routeSpeedExit &&
stop.departureLineInfo.routeSpeedExit != stop.departureLineInfo.routeSpeed
? `${stop.departureLineInfo.routeSpeedExit} (${stop.departureLineInfo.routeSpeed})` ? `${stop.departureLineInfo.routeSpeedExit} (${stop.departureLineInfo.routeSpeed})`
: stop.departureLineInfo.routeSpeed : stop.departureLineInfo.routeSpeed
}}</span }}</span
@@ -121,10 +122,16 @@
<span> {{ stop.nextPointRef.arrivalLine }}</span> <span> {{ stop.nextPointRef.arrivalLine }}</span>
<span v-if="stop.nextPointRef.arrivalLineInfo"> <span v-if="stop.nextPointRef.arrivalLineInfo">
<span> | {{ stop.nextPointRef.arrivalLineInfo!.routeSpeed }}</span> <span> | {{ stop.nextPointRef.arrivalLineInfo.routeSpeed }}</span>
<span v-if="stop.nextPointRef.arrivalLineInfo!.routeSpeedExit" <span
>({{ stop.nextPointRef.arrivalLineInfo!.routeSpeedExit }})</span v-if="
stop.nextPointRef.arrivalLineInfo.routeSpeedExit &&
stop.nextPointRef.arrivalLineInfo.routeSpeedExit !=
stop.nextPointRef.arrivalLineInfo.routeSpeed
"
> >
({{ stop.nextPointRef.arrivalLineInfo.routeSpeedExit }})
</span>
<img <img
:src=" :src="