Poprawki wyglądu, usunięcie buga z filtrem pociągów

This commit is contained in:
2021-04-11 00:43:42 +02:00
parent 29b11cf80d
commit 6b867cc457
7 changed files with 26 additions and 17 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ export default class App extends Vue {
font-size: 1rem; font-size: 1rem;
@include smallScreen() { @include smallScreen() {
font-size: calc(0.35rem + 1vw); font-size: calc(0.45rem + 1vw);
} }
} }
+7 -3
View File
@@ -21,16 +21,19 @@
<img :src="likeIcon" alt="icon-like" /> <img :src="likeIcon" alt="icon-like" />
<span>{{ stationInfo.dispatcherRate }}</span> <span>{{ stationInfo.dispatcherRate }}</span>
</span> </span>
<span class="users"> <span class="users">
<img :src="userIcon" alt="icon-user" /> <img :src="userIcon" alt="icon-user" />
<span>{{ stationInfo.currentUsers }}</span> <span>{{ stationInfo.currentUsers }}</span>
/ /
<span>{{ stationInfo.maxUsers }}</span> <span>{{ stationInfo.maxUsers }}</span>
</span> </span>
<span class="spawns"> <span class="spawns">
<img :src="spawnIcon" alt="icon-spawn" /> <img :src="spawnIcon" alt="icon-spawn" />
<span>{{ stationInfo.spawns.length }}</span> <span>{{ stationInfo.spawns.length }}</span>
</span> </span>
<span class="schedules"> <span class="schedules">
<img :src="timetableIcon" alt="icon-timetable" /> <img :src="timetableIcon" alt="icon-timetable" />
<span v-if="stationInfo.scheduledTrains"> <span v-if="stationInfo.scheduledTrains">
@@ -253,7 +256,7 @@ h3 {
font-weight: bold; font-weight: bold;
color: $accentCol; color: $accentCol;
font-size: 4em; font-size: 3.5em;
text-transform: uppercase; text-transform: uppercase;
} }
@@ -270,15 +273,16 @@ h3 {
padding: 1rem 0; padding: 1rem 0;
display: flex; display: flex;
flex-wrap: wrap;
justify-content: center; justify-content: center;
font-size: 1.7em; font-size: 1.65em;
& > span { & > span {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 0 0.6em; margin: 0.3em;
} }
.likes, .likes,
@@ -350,7 +350,7 @@ h3 {
padding: 0 0.35em; padding: 0 0.35em;
background: #555; background: $bgLigtherCol;
@include smallScreen() { @include smallScreen() {
display: flex; display: flex;
@@ -361,7 +361,7 @@ h3 {
&.loading, &.loading,
&.empty { &.empty {
padding: 1rem; padding: 1rem;
font-size: 1em; font-size: 1.2em;
} }
&.empty { &.empty {
@@ -389,12 +389,12 @@ h3 {
&-schedule { &-schedule {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
font-size: 1.2em; font-size: 1.3em;
@include smallScreen() { @include smallScreen() {
width: 100%; width: 100%;
margin: 0.7em 0; margin: 0.5em 0;
} }
} }
} }
@@ -81,6 +81,13 @@ export default class TrainOptions extends Vue {
@Prop() readonly queryTrain!: string; @Prop() readonly queryTrain!: string;
@Prop() readonly focusedTrain!: string; @Prop() readonly focusedTrain!: string;
mounted() {
if (this.queryTrain) {
this.searchedTrain = this.queryTrain;
this.searchedDriver = "";
}
}
sorterOptions: { id: string; content: string }[] = [ sorterOptions: { id: string; content: string }[] = [
{ {
id: "mass", id: "mass",
+3 -2
View File
@@ -1,7 +1,8 @@
$primaryCol: #2f2f2f; $primaryCol: #2c2c2c;
$secondaryCol: #01e733; $secondaryCol: #01e733;
$bgCol: #505050; $bgCol: #4d4d4d;
$bgLigtherCol: #555;
$errorCol: #ff1919; $errorCol: #ff1919;
$warningCol: #ffe15b; $warningCol: #ffe15b;
+3 -5
View File
@@ -68,6 +68,8 @@ export default class SceneryView extends Vue {
@import "../styles/responsive.scss"; @import "../styles/responsive.scss";
@import "../styles/variables.scss"; @import "../styles/variables.scss";
$sceneryBgCol: #333;
.scenery { .scenery {
&-view { &-view {
min-height: 100%; min-height: 100%;
@@ -94,7 +96,6 @@ export default class SceneryView extends Vue {
} }
&-wrapper { &-wrapper {
// background: #555;
width: 75%; width: 75%;
max-width: 950px; max-width: 950px;
@@ -102,10 +103,7 @@ export default class SceneryView extends Vue {
width: 95%; width: 95%;
} }
// max-height: 100vh; background: $sceneryBgCol;
// overflow: auto;
background: #333;
padding: 1em; padding: 1em;
margin: 1rem 0; margin: 1rem 0;
-1
View File
@@ -73,7 +73,6 @@ export default class TrainsView extends Vue {
changeSorter(sorter: { id: string; dir: number }) { changeSorter(sorter: { id: string; dir: number }) {
this.sorterActive = sorter; this.sorterActive = sorter;
} }
get computedTrains() { get computedTrains() {
return this.trains return this.trains
.filter( .filter(