Fix responsywności widoku scenerii

This commit is contained in:
2022-07-06 22:34:19 +02:00
parent f828a4aca4
commit 10934b12d8
2 changed files with 18 additions and 3 deletions
+17 -1
View File
@@ -123,7 +123,7 @@ export default defineComponent({
if (lastMajorConfirmed + 1 >= props.train.timetableData!.followingStops.length) return activeMinorStopList;
for (let i = lastMajorConfirmed + 1; i < props.train.timetableData!.followingStops.length; i++) {
if (props.train.timetableData!.followingStops[i].stopNameRAW.includes('po.')) activeMinorStopList.push(i);
if (/po\.|sbl/gi.test(props.train.timetableData!.followingStops[i].stopNameRAW)) activeMinorStopList.push(i);
else break;
}
@@ -144,6 +144,7 @@ export default defineComponent({
begin: stop.beginsHere,
end: stop.terminatesHere,
delayed: stop.departureDelay > 0,
sbl: /sbl/gi.test(stop.stopName),
[stop.stopType.replaceAll(', ', '-')]:
stop.stopType.match(new RegExp('ph|pm|pt')) && !stop.confirmed && !stop.beginsHere,
'minor-stop-active': this.activeMinorStops.includes(index),
@@ -232,6 +233,10 @@ ul.stock-list {
display: flex;
align-items: center;
&.misc {
background: gray;
}
}
.stop-comment {
@@ -272,6 +277,17 @@ ul.stop_list > li.stop {
padding: 0 0.5em;
&.sbl {
.stop-name,
.stop-date {
opacity: 0.7;
}
.stop-name {
background-color: #333;
}
}
&[class*='ph'] > .stop_info > .indicator {
border-color: $stopNameClr;
}