Dodatkowe informacje i poprawki wyglądu dziennika RJ

This commit is contained in:
2022-09-04 17:12:44 +02:00
parent dc1c457ea4
commit 2a64b8f10d
4 changed files with 41 additions and 11 deletions
@@ -76,7 +76,7 @@
<b>{{ timetable.route.replace('|', ' - ') }}</b> <b>{{ timetable.route.replace('|', ' - ') }}</b>
</div> </div>
<hr style="margin: 0.25em 0" /> <hr />
<div class="scenery-list"> <div class="scenery-list">
<span <span
@@ -126,11 +126,19 @@
class="btn--option btn--show" class="btn--option btn--show"
@click="item.showStock.value = !item.showStock.value" @click="item.showStock.value = !item.showStock.value"
> >
{{ $t(`journal.${item.showStock.value ? 'hide' : 'show'}-stock`) }} {{ $t('journal.stock-info') }}
<img :src="getIcon(`arrow-${item.showStock.value ? 'asc' : 'desc'}`)" alt="Arrow" /> <img :src="getIcon(`arrow-${item.showStock.value ? 'asc' : 'desc'}`)" alt="Arrow" />
</button> </button>
<div class="info-extended" v-if="timetable.stockString" v-show="item.showStock.value"> <div class="info-extended" v-if="timetable.stockString" v-show="item.showStock.value">
<hr />
<div>
{{ `${$t('journal.stock-max-speed')}: ${timetable.maxSpeed}km/h` }} &bull;
{{ `${$t('journal.stock-length')}: ${timetable.stockLength}m` }} &bull;
{{ `${$t('journal.stock-mass')}: ${Math.floor(timetable.stockMass! / 1000)}t` }}
</div>
<ul class="stock-list"> <ul class="stock-list">
<li v-for="(car, i) in timetable.stockString.split(';')" :key="i"> <li v-for="(car, i) in timetable.stockString.split(';')" :key="i">
<img <img
@@ -455,6 +463,11 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../styles/JournalSection.scss'; @import '../../styles/JournalSection.scss';
@import '../../styles/responsive.scss'; @import '../../styles/responsive.scss';
hr {
margin: 0.25em 0;
}
.info { .info {
&-date { &-date {
margin-right: 0.5em; margin-right: 0.5em;
@@ -486,6 +499,10 @@ export default defineComponent({
&-route { &-route {
margin: 0.25em 0; margin: 0.25em 0;
} }
&-extended {
margin-top: 0.5em;
}
} }
ul.stock-list { ul.stock-list {
@@ -511,8 +528,9 @@ ul.stock-list {
.btn--show { .btn--show {
display: flex; display: flex;
margin-top: 0.5em; margin-top: 1em;
font-weight: bold; font-weight: bold;
padding: 0.2em 0.45em;
img { img {
height: 1.3em; height: 1.3em;
@@ -528,9 +546,17 @@ ul.stock-list {
} }
} }
.info-extended {
text-align: center;
}
.info-route { .info-route {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.btn--show {
margin: 1em auto 0 auto;
}
} }
</style> </style>
+4 -2
View File
@@ -241,8 +241,10 @@
"minutes": "{minutes} mins", "minutes": "{minutes} mins",
"hours": "{hours}h {minutes} mins", "hours": "{hours}h {minutes} mins",
"show-stock": "SHOW STOCK", "stock-info": "STOCK INFO",
"hide-stock": "HIDE STOCK" "stock-length": "Length",
"stock-mass": "Mass",
"stock-max-speed": "Maximum registered speed"
}, },
"scenery": { "scenery": {
"users": "PLAYERS ONLINE", "users": "PLAYERS ONLINE",
+4 -2
View File
@@ -243,8 +243,10 @@
"timetable-fulfilled": "WYPEŁNIONY", "timetable-fulfilled": "WYPEŁNIONY",
"timetable-abandoned": "PORZUCONY", "timetable-abandoned": "PORZUCONY",
"show-stock": "POKAŻ SKŁAD", "stock-info": "INFORMACJE O SKŁADZIE",
"hide-stock": "UKRYJ SKŁAD" "stock-length": "Długość",
"stock-mass": "Masa",
"stock-max-speed": "Maks. zarejestrowana prędkość"
}, },
"scenery": { "scenery": {
"users": "GRACZE ONLINE", "users": "GRACZE ONLINE",
+3 -3
View File
@@ -28,7 +28,7 @@ body {
&.no-scroll { &.no-scroll {
overflow-y: hidden; overflow-y: hidden;
padding-right: 17px; padding-right: 1rem;
@include smallScreen() { @include smallScreen() {
padding: 0; padding: 0;
@@ -46,8 +46,8 @@ body {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 17px; width: 1rem;
height: 17px; height: 1rem;
&-track { &-track {
background-color: #222; background-color: #222;