diff --git a/package.json b/package.json index 433edf1..7f9655e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stacjownik", - "version": "1.26.1", + "version": "1.27.0", "private": true, "type": "module", "scripts": { diff --git a/src/App.vue b/src/App.vue index a795bfa..7602452 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,13 +6,6 @@ /> - - - - - - -
@@ -54,7 +47,6 @@ import { useTooltipStore } from './store/tooltipStore'; import Clock from './components/App/Clock.vue'; import StatusIndicator from './components/App/StatusIndicator.vue'; import AppHeader from './components/App/AppHeader.vue'; -import TrainModal from './components/TrainsView/TrainModal.vue'; import Tooltip from './components/Tooltip/Tooltip.vue'; import UpdateCard from './components/App/UpdateCard.vue'; @@ -67,7 +59,6 @@ export default defineComponent({ Clock, StatusIndicator, AppHeader, - TrainModal, UpdateCard, Tooltip }, diff --git a/src/components/Global/ProgressBar.vue b/src/components/Global/ProgressBar.vue index f2a395f..b2694d6 100644 --- a/src/components/Global/ProgressBar.vue +++ b/src/components/Global/ProgressBar.vue @@ -43,7 +43,6 @@ export default defineComponent({ width: 6em; height: 1em; - margin: 0.5em 0; .bar-fg, .bar-bg { diff --git a/src/components/JournalView/JournalDailyStats.vue b/src/components/JournalView/JournalDailyStats.vue index 2e13fdb..65abaa6 100644 --- a/src/components/JournalView/JournalDailyStats.vue +++ b/src/components/JournalView/JournalDailyStats.vue @@ -1,29 +1,28 @@ @@ -137,7 +118,6 @@ export default defineComponent({ gap: 0.25em; cursor: pointer; - line-height: 2; } .general-time { @@ -180,6 +160,7 @@ export default defineComponent({ @include smallScreen { .item-general { + flex-direction: column; justify-content: center; } } diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue index 80d0991..c67f1b5 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue @@ -15,14 +15,13 @@
  • - {{ train.trainNo }} - {{ train.driverName }} + + {{ train.trainNo }} + {{ train.driverName }} +
  • @@ -30,14 +29,13 @@ diff --git a/src/components/StationsView/StationTable.vue b/src/components/StationsView/StationTable.vue index e5a71c8..76caee8 100644 --- a/src/components/StationsView/StationTable.vue +++ b/src/components/StationsView/StationTable.vue @@ -52,15 +52,14 @@ - {{ @@ -121,7 +120,7 @@ @@ -294,7 +293,7 @@ > {{ station.onlineInfo?.scheduledTrainCount.confirmed ?? '-' }} - + @@ -319,7 +318,7 @@ import dateMixin from '../../mixins/dateMixin'; import styleMixin from '../../mixins/styleMixin'; import { useApiStore } from '../../store/apiStore'; import { useMainStore } from '../../store/mainStore'; -import { Status } from '../../typings/common'; +import { Station, Status } from '../../typings/common'; import { useTooltipStore } from '../../store/tooltipStore'; import { getChangedFilters } from '../../managers/stationFilterManager'; import { ActiveSorter, HeadIdsType, headIconsIds, headIds } from './typings'; @@ -334,7 +333,6 @@ export default defineComponent({ data: () => ({ headIconsIds, headIds, - lastSelectedStationName: '', getChangedFilters }), @@ -364,21 +362,16 @@ export default defineComponent({ }, methods: { - setScenery(name: string) { - const station = this.filteredStationList.find((station) => station.name === name); + getSceneryRoute(station: Station) { + // TODO: Hide tooltips when navigating away - if (!station) return; - - this.lastSelectedStationName = station.name; - this.tooltipStore.hide(); - - this.$router.push({ + return { name: 'SceneryView', query: { - station: station.name.replaceAll(' ', '_'), + station: station.name, region: this.$route.query.region || undefined } - }); + }; }, openDonationCard(e: Event) { @@ -414,7 +407,7 @@ export default defineComponent({ $rowCol: #424242; .station_table { - height: 80vh; + height: 90vh; max-height: 2000px; min-height: 700px; overflow: auto; @@ -503,8 +496,10 @@ table { } } -tr { +tr, +.a-row { background-color: $rowCol; + vertical-align: middle; &:nth-child(even) { background-color: lighten($rowCol, 5); diff --git a/src/components/TrainsView/StopLabel.vue b/src/components/TrainsView/StopLabel.vue index ee800d0..15731bc 100644 --- a/src/components/TrainsView/StopLabel.vue +++ b/src/components/TrainsView/StopLabel.vue @@ -1,9 +1,13 @@