Dodano informacje o wymaganym poziomie, poprawki w wyświetlaniu reszty informacji

This commit is contained in:
2020-07-05 15:12:09 +02:00
parent e545ac1261
commit 9d56e1c43c
5 changed files with 68 additions and 10 deletions
+37 -6
View File
@@ -43,6 +43,18 @@
alt="default-pack"
title="Sceneria domyślnie dostępna w grze"
/>
<img
v-if="stationInfo.nonPublic || !stationInfo.reqLevel"
:src="require(`@/assets/icon-lock.svg`)"
alt="non-public"
title="Sceneria niepubliczna"
/>
<span
v-if="stationInfo.reqLevel"
:title="'Wymagany poziom dyżurnego: ' + stationInfo.reqLevel"
>{{parseInt(stationInfo.reqLevel) < 2 ? "L" : stationInfo.reqLevel}}</span>
</div>
<div class="station-info"></div>
@@ -104,7 +116,10 @@
</a>
</div>
<span class="user--borderless" v-if="!stationInfo.trains">BRAK</span>
<span
class="user borderless"
v-if="!stationInfo.trains || stationInfo.trains.length == 0"
>BRAK</span>
</div>
</div>
</div>
@@ -151,8 +166,8 @@ export default Vue.extend({
overflow: auto;
width: 70%;
max-width: 550px;
width: 65%;
max-width: 650px;
box-shadow: 0 0 15px 5px #474747;
@@ -177,7 +192,7 @@ export default Vue.extend({
&-content {
display: grid;
grid-template-areas: "dispatcher dispatcher" "rating rating" "hours hours" "users spawns";
grid-template-columns: repeat(2, 1fr);
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: center;
text-align: center;
@@ -226,10 +241,26 @@ export default Vue.extend({
justify-content: center;
align-items: center;
& > img {
img,
span {
width: 2.5em;
height: 2.5em;
margin: 0 0.5em;
}
span {
background-color: #898989;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
}
}
@@ -325,7 +356,7 @@ export default Vue.extend({
margin: 0.3rem;
border: 1px solid white;
&--no-border {
&.borderless {
border: none;
}
}
+18 -2
View File
@@ -2,7 +2,7 @@
<div class="list">
<Card :stationInfo="focusedStationInfo" :closeCard="closeCard" />
<div class="table-wrapper">
<!-- <ListFilter /> -->
<!-- <ListFilter /> -->
<table class="table">
<thead>
<tr>
@@ -35,7 +35,7 @@
<td
class="station-name"
:class="station.default && 'default-station'"
>{{station.stationName}}</td>
>{{station.stationName}} {{ station.reqLevel ? "| " + (parseInt(station.reqLevel) >= 2 ? station.reqLevel : "L") : "" }}</td>
<td class="disptacher-name">{{station.dispatcherName}}</td>
<td class="dispatcher-exp">
@@ -66,6 +66,13 @@
alt="SBL"
title="Sceneria posiada SBL na przynajmniej jednym ze szlaków"
/>
<img
v-if="!station.reqLevel || station.nonPublic"
:src="require(`@/assets/icon-lock.svg`)"
alt="non-public"
title="Sceneria niepubliczna"
/>
</td>
<td class="tracks twoway">
@@ -155,6 +162,9 @@ export default Vue.extend({
case "NIEDOSTĘPNY":
className = "unavailable";
break;
case "Z/W":
className = "brb";
break;
default:
break;
}
@@ -206,6 +216,12 @@ ul {
background-color: $accent2Col;
font-size: 0.9em;
}
&.brb {
background-color: $accentCol;
color: black;
font-size: 0.95em;
}
}
.list {