mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-05 06:18:12 +00:00
Fix responsywności widoku scenerii
This commit is contained in:
@@ -123,7 +123,7 @@ export default defineComponent({
|
|||||||
if (lastMajorConfirmed + 1 >= props.train.timetableData!.followingStops.length) return activeMinorStopList;
|
if (lastMajorConfirmed + 1 >= props.train.timetableData!.followingStops.length) return activeMinorStopList;
|
||||||
|
|
||||||
for (let i = lastMajorConfirmed + 1; i < props.train.timetableData!.followingStops.length; i++) {
|
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;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,6 +144,7 @@ export default defineComponent({
|
|||||||
begin: stop.beginsHere,
|
begin: stop.beginsHere,
|
||||||
end: stop.terminatesHere,
|
end: stop.terminatesHere,
|
||||||
delayed: stop.departureDelay > 0,
|
delayed: stop.departureDelay > 0,
|
||||||
|
sbl: /sbl/gi.test(stop.stopName),
|
||||||
[stop.stopType.replaceAll(', ', '-')]:
|
[stop.stopType.replaceAll(', ', '-')]:
|
||||||
stop.stopType.match(new RegExp('ph|pm|pt')) && !stop.confirmed && !stop.beginsHere,
|
stop.stopType.match(new RegExp('ph|pm|pt')) && !stop.confirmed && !stop.beginsHere,
|
||||||
'minor-stop-active': this.activeMinorStops.includes(index),
|
'minor-stop-active': this.activeMinorStops.includes(index),
|
||||||
@@ -232,6 +233,10 @@ ul.stock-list {
|
|||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
&.misc {
|
||||||
|
background: gray;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stop-comment {
|
.stop-comment {
|
||||||
@@ -272,6 +277,17 @@ ul.stop_list > li.stop {
|
|||||||
|
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
|
|
||||||
|
&.sbl {
|
||||||
|
.stop-name,
|
||||||
|
.stop-date {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stop-name {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&[class*='ph'] > .stop_info > .indicator {
|
&[class*='ph'] > .stop_info > .indicator {
|
||||||
border-color: $stopNameClr;
|
border-color: $stopNameClr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,8 +65,7 @@ export default defineComponent({
|
|||||||
else if (
|
else if (
|
||||||
i > 0 &&
|
i > 0 &&
|
||||||
i < stops.length - 1 &&
|
i < stops.length - 1 &&
|
||||||
!stop.stopNameRAW.includes('po.') &&
|
!/po\.|sbl/gi.test(stop.stopNameRAW)
|
||||||
!stop.stopNameRAW.includes('SBL')
|
|
||||||
)
|
)
|
||||||
acc.push(`<span style='color:${stop.confirmed ? 'springgreen' : 'lightgray'}'>${stop.stopName}</span>`);
|
acc.push(`<span style='color:${stop.confirmed ? 'springgreen' : 'lightgray'}'>${stop.stopName}</span>`);
|
||||||
return acc;
|
return acc;
|
||||||
|
|||||||
Reference in New Issue
Block a user