From 0af49befc6fe5e571a5d64adea0b88a84b174d62 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 4 Feb 2025 14:12:47 +0100 Subject: [PATCH] chore: changed layout of journal timetable badges --- .../JournalTimetables/EntryDetails.vue | 84 +++++++++++-------- src/components/TrainsView/TrainInfo.vue | 4 - 2 files changed, 47 insertions(+), 41 deletions(-) diff --git a/src/components/JournalView/JournalTimetables/EntryDetails.vue b/src/components/JournalView/JournalTimetables/EntryDetails.vue index b3c25eb..b363a2c 100644 --- a/src/components/JournalView/JournalTimetables/EntryDetails.vue +++ b/src/components/JournalView/JournalTimetables/EntryDetails.vue @@ -24,44 +24,20 @@
- + {{ $t('journal.dispatcher-name') }} {{ timetable.authorName }} - - {{ $t('journal.stock-length') }} - - {{ - currentHistoryIndex == 0 - ? timetable.stockLength - : stockHistory[currentHistoryIndex].stockLength || timetable.stockLength - }}m - - - - - {{ $t('journal.stock-mass') }} - - {{ - Math.floor( - (currentHistoryIndex == 0 - ? timetable.stockMass - : stockHistory[currentHistoryIndex].stockMass || timetable.stockMass) / 1000 - ) - }}t - - - - - {{ $t('journal.stock-max-speed') }} - {{ timetable.maxSpeed }}km/h - - - + {{ $t('journal.stock-timetable-speed') }} {{ timetable.trainMaxSpeed }}km/h + + + {{ $t('journal.stock-max-speed') }} + {{ timetable.maxSpeed }}km/h +
@@ -98,8 +74,35 @@
+ {{ $t('journal.stock-preview') }}: +
+ + {{ $t('journal.stock-length') }} + + {{ + currentHistoryIndex == 0 + ? timetable.stockLength + : stockHistory[currentHistoryIndex].stockLength || timetable.stockLength + }}m + + + + + {{ $t('journal.stock-mass') }} + + {{ + Math.floor( + (currentHistoryIndex == 0 + ? timetable.stockMass + : stockHistory[currentHistoryIndex].stockMass || timetable.stockMass) / 1000 + ) + }}t + + +
+