Poprawki responsywności i dostępu; usprawniono layout

This commit is contained in:
2022-07-31 17:36:11 +02:00
parent 27405485bd
commit 37f35f94c9
7 changed files with 397 additions and 387 deletions
+4 -3
View File
@@ -252,9 +252,7 @@ export default defineComponent({
if (this.store.stockList.length == 0 || !this.store.stockList[0].isLoco) {
this.store.stockList.length = 0;
let locoSet = this.store.locoDataList
.filter((loco) => loco.power == 'loco-e' || loco.power == 'loco-s')
.filter((loco) => (loco.supportersOnly ? false : true));
let locoSet = this.store.locoDataList.filter((loco) => loco.power == 'loco-e' || loco.power == 'loco-s');
if (this.chosenCarTypes.some((car) => this.cargoTypes.includes(car)))
locoSet = locoSet.filter((loco) => !loco.type.startsWith('EP'));
@@ -303,6 +301,9 @@ export default defineComponent({
totalStockMass += randCargo?.totalMass || randCar.mass;
}
this.store.chosenStockListIndex = -1;
this.store.chosenVehicle = null;
this.store.isRandomizerCardOpen = false;
},