@@ -161,7 +169,8 @@ export default class FilterCard extends Vue {
background: #262a2e;
- font-size: calc(0.75rem + 0.4vw);
+ font-size: calc(0.75rem + 0.45vw);
+
box-shadow: 0 0 15px 5px #474747;
@include smallScreen() {
@@ -175,12 +184,6 @@ export default class FilterCard extends Vue {
}
.card {
- &-exit {
- img {
- width: 1.2em;
- }
- }
-
&-title {
font-size: 2em;
font-weight: 700;
@@ -217,6 +220,12 @@ export default class FilterCard extends Vue {
font-size: 0.9em;
}
}
+
+ &-exit {
+ img {
+ width: 2em;
+ }
+ }
}
.option {
@@ -248,6 +257,10 @@ export default class FilterCard extends Vue {
transition: all 0.2s;
+ &.save {
+ font-size: 0.8em;
+ }
+
&:not(.checked) {
background-color: #585858;
diff --git a/src/components/StationsView/StationCard.vue b/src/components/StationsView/StationCard.vue
index b7f9499..903c54f 100644
--- a/src/components/StationsView/StationCard.vue
+++ b/src/components/StationsView/StationCard.vue
@@ -137,7 +137,7 @@
@@ -202,28 +202,9 @@ export default class StationCard extends styleMixin {
: `${this.stationInfo.dispatcherExp}`;
}
- get computedScheduledTrains() {
- return this.stationInfo.scheduledTrains.map(scheduledTrain => {
- let stopStatus = "";
- let stopLabel = "";
-
- if (scheduledTrain.stopInfo.terminatesHere && scheduledTrain.stopInfo.confirmed) { stopStatus = "terminated"; stopLabel = "Skończył bieg" }
- else if (!scheduledTrain.stopInfo.terminatesHere && scheduledTrain.stopInfo.confirmed) { stopStatus = "departed"; stopLabel = "Odprawiony" }
- else if (scheduledTrain.currentStationName == this.stationInfo.stationName && !scheduledTrain.stopInfo.stopped) { stopStatus = "online"; stopLabel = "Na stacji" }
- else if (scheduledTrain.currentStationName == this.stationInfo.stationName && scheduledTrain.stopInfo.stopped) { stopStatus = "stopped"; stopLabel = "Postój" }
- else if (scheduledTrain.currentStationName != this.stationInfo.stationName) { stopStatus = "arriving"; stopLabel = "W drodze" }
-
- return {
- ...scheduledTrain,
- stopStatus,
- stopLabel
- }
- })
- }
-
get computedStationTrains() {
return this.stationInfo.stationTrains.map(stationTrain => {
- const scheduledData = this.computedScheduledTrains.find(scheduledTrain => scheduledTrain.trainNo === stationTrain.trainNo);
+ const scheduledData = this.stationInfo.scheduledTrains.find(scheduledTrain => scheduledTrain.trainNo === stationTrain.trainNo);
return {
...stationTrain,
@@ -237,6 +218,7 @@ export default class StationCard extends styleMixin {