diff --git a/index.html b/index.html index d3a4ee4..72b7f45 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,14 @@ - + - + Stacjownik @@ -18,10 +21,6 @@ - - - - @@ -29,18 +28,33 @@ - - + + - - + + - + diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index 23b8505..34c6cd7 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -151,6 +151,7 @@ img.train-image { &-list { position: relative; overflow-y: hidden; + min-height: 100%; @include smallScreen() { width: 100%; diff --git a/src/store/utils.ts b/src/store/utils.ts index 646d60b..ae24d51 100644 --- a/src/store/utils.ts +++ b/src/store/utils.ts @@ -188,7 +188,7 @@ export function getScheduledTrains( sceneryData: API.ActiveSceneries.Data, stationGeneralInfo: Station['generalInfo'] ): ScheduledTrain[] { - const stationName = sceneryData.stationName.toLocaleLowerCase(); + const stationNameLower = sceneryData.stationName.toLocaleLowerCase(); stationGeneralInfo?.checkpoints.forEach((cp) => (cp.scheduledTrains.length = 0)); @@ -199,14 +199,14 @@ export function getScheduledTrains( if (!timetable.sceneries.includes(sceneryData.stationHash)) return acc; const stopInfoIndex = timetable.followingStops.findIndex((stop) => { - const stopName = stop.stopNameRAW.toLowerCase(); + const stopNameLower = stop.stopNameRAW.toLocaleLowerCase(); return ( - stationName == stopName || - (!/(po\.|podg\.)/.test(stopName) && stopName.includes(stationName)) || - (!/(po\.|podg\.)/.test(stationName) && stationName.includes(stopName)) || - (stopName.split(', podg.')[0] !== undefined && - stationName.startsWith(stopName.split(', podg.')[0])) + stationNameLower == stopNameLower || + (!/(po\.|podg\.)/.test(stopNameLower) && stopNameLower.includes(stationNameLower)) || + (!/(po\.|podg\.)/.test(stationNameLower) && stationNameLower.includes(stopNameLower)) || + (stopNameLower.split(', podg.')[0] !== undefined && + stationNameLower.startsWith(stopNameLower.split(', podg.')[0])) ); }); @@ -219,7 +219,7 @@ export function getScheduledTrains( } stationGeneralInfo?.checkpoints?.forEach((checkpoint) => { - if (checkpoint.checkpointName.toLocaleLowerCase() == stationName) return; + // if (checkpoint.checkpointName.toLocaleLowerCase() == stationNameLower) return; if ( checkpointScheduledTrains.findIndex(