mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore: layout & design fixes
This commit is contained in:
@@ -4,302 +4,299 @@
|
|||||||
v-if="apiStore.dataStatuses.connection == Status.Loading && filteredStationList.length == 0"
|
v-if="apiStore.dataStatuses.connection == Status.Loading && filteredStationList.length == 0"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="table_wrapper" v-else-if="filteredStationList.length > 0">
|
<table v-else-if="filteredStationList.length > 0">
|
||||||
<table>
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th
|
||||||
<th
|
v-for="headerName in headIds"
|
||||||
v-for="headerName in headIds"
|
:key="headerName"
|
||||||
:key="headerName"
|
@click="changeSorter(headerName)"
|
||||||
@click="changeSorter(headerName)"
|
class="header-text"
|
||||||
class="header-text"
|
:class="headerName"
|
||||||
:class="headerName"
|
|
||||||
>
|
|
||||||
<span class="header_wrapper">
|
|
||||||
<div v-html="$t(`sceneries.headers.${headerName}`)"></div>
|
|
||||||
|
|
||||||
<img
|
|
||||||
class="sort-icon"
|
|
||||||
v-if="activeSorter.headerName == headerName"
|
|
||||||
:src="`/images/icon-arrow-${activeSorter.dir == 1 ? 'asc' : 'desc'}.svg`"
|
|
||||||
alt="sort icon"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th
|
|
||||||
v-for="headerName in headIconsIds"
|
|
||||||
:key="headerName"
|
|
||||||
@click="changeSorter(headerName)"
|
|
||||||
class="header-image"
|
|
||||||
:class="headerName"
|
|
||||||
>
|
|
||||||
<span class="header_wrapper">
|
|
||||||
<img
|
|
||||||
:src="`/images/icon-${headerName}.svg`"
|
|
||||||
:alt="headerName"
|
|
||||||
:title="$t(`sceneries.headers.${headerName}`)"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<img
|
|
||||||
class="sort-icon"
|
|
||||||
v-if="activeSorter.headerName == headerName"
|
|
||||||
:src="`/images/icon-arrow-${activeSorter.dir == 1 ? 'asc' : 'desc'}.svg`"
|
|
||||||
alt="sort icon"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody>
|
|
||||||
<tr
|
|
||||||
v-for="station in filteredStationList"
|
|
||||||
:class="{ 'last-selected': lastSelectedStationName == station.name }"
|
|
||||||
:key="station.name"
|
|
||||||
@click.left="setScenery(station.name)"
|
|
||||||
@click.right="openForumSite($event, station.generalInfo?.url)"
|
|
||||||
@keydown.enter="setScenery(station.name)"
|
|
||||||
@keydown.space="openForumSite($event, station.generalInfo?.url)"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
>
|
||||||
<td class="station-name" :class="station.generalInfo?.availability">
|
<span class="header_wrapper">
|
||||||
<b v-if="station.generalInfo?.project" style="color: salmon">{{
|
<div v-html="$t(`sceneries.headers.${headerName}`)"></div>
|
||||||
station.generalInfo.project
|
|
||||||
}}</b>
|
|
||||||
{{ station.name }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="station-level">
|
<img
|
||||||
<span v-if="station.generalInfo">
|
class="sort-icon"
|
||||||
<span
|
v-if="activeSorter.headerName == headerName"
|
||||||
v-if="
|
:src="`/images/icon-arrow-${activeSorter.dir == 1 ? 'asc' : 'desc'}.svg`"
|
||||||
station.generalInfo.reqLevel > -1 &&
|
alt="sort icon"
|
||||||
station.generalInfo.availability != 'nonPublic' &&
|
|
||||||
station.generalInfo.availability != 'unavailable'
|
|
||||||
"
|
|
||||||
:style="calculateExpStyle(station.generalInfo.reqLevel)"
|
|
||||||
>
|
|
||||||
{{ station.generalInfo.reqLevel >= 2 ? station.generalInfo.reqLevel : 'L' }}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span v-else-if="station.generalInfo.availability == 'abandoned'">
|
|
||||||
<img
|
|
||||||
src="/images/icon-abandoned.svg"
|
|
||||||
alt="non-public"
|
|
||||||
:title="$t('sceneries.info.abandoned')"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span v-else-if="station.generalInfo.availability == 'nonPublic'">
|
|
||||||
<img
|
|
||||||
src="/images/icon-lock.svg"
|
|
||||||
alt="non-public"
|
|
||||||
:title="$t('sceneries.info.non-public')"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span v-else>
|
|
||||||
<img
|
|
||||||
src="/images/icon-unavailable.svg"
|
|
||||||
alt="unavailable"
|
|
||||||
:title="$t('sceneries.info.unavailable')"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span v-else> ? </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="station-status">
|
|
||||||
<StationStatusBadge
|
|
||||||
:isOnline="station.onlineInfo ? true : false"
|
|
||||||
:dispatcherStatus="station.onlineInfo?.dispatcherStatus"
|
|
||||||
/>
|
/>
|
||||||
</td>
|
</span>
|
||||||
|
</th>
|
||||||
|
|
||||||
<td class="station-dispatcher-name">
|
<th
|
||||||
<span v-if="station.onlineInfo?.dispatcherName">
|
v-for="headerName in headIconsIds"
|
||||||
<b
|
:key="headerName"
|
||||||
v-if="apiStore.donatorsData.includes(station.onlineInfo.dispatcherName)"
|
@click="changeSorter(headerName)"
|
||||||
@click.stop="openDonationCard"
|
class="header-image"
|
||||||
data-tooltip-type="DonatorTooltip"
|
:class="headerName"
|
||||||
:data-tooltip-content="$t('donations.dispatcher-message')"
|
>
|
||||||
>
|
<span class="header_wrapper">
|
||||||
<img src="/images/icon-diamond.svg" alt="" />
|
<img
|
||||||
{{ station.onlineInfo.dispatcherName }}
|
:src="`/images/icon-${headerName}.svg`"
|
||||||
</b>
|
:alt="headerName"
|
||||||
|
:title="$t(`sceneries.headers.${headerName}`)"
|
||||||
|
/>
|
||||||
|
|
||||||
<div v-else>
|
<img
|
||||||
{{ station.onlineInfo.dispatcherName }}
|
class="sort-icon"
|
||||||
</div>
|
v-if="activeSorter.headerName == headerName"
|
||||||
</span>
|
:src="`/images/icon-arrow-${activeSorter.dir == 1 ? 'asc' : 'desc'}.svg`"
|
||||||
</td>
|
alt="sort icon"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<td class="station-dispatcher-exp">
|
<tbody>
|
||||||
|
<tr
|
||||||
|
v-for="station in filteredStationList"
|
||||||
|
:class="{ 'last-selected': lastSelectedStationName == station.name }"
|
||||||
|
:key="station.name"
|
||||||
|
@click.left="setScenery(station.name)"
|
||||||
|
@click.right="openForumSite($event, station.generalInfo?.url)"
|
||||||
|
@keydown.enter="setScenery(station.name)"
|
||||||
|
@keydown.space="openForumSite($event, station.generalInfo?.url)"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<td class="station-name" :class="station.generalInfo?.availability">
|
||||||
|
<b v-if="station.generalInfo?.project" style="color: salmon">{{
|
||||||
|
station.generalInfo.project
|
||||||
|
}}</b>
|
||||||
|
{{ station.name }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="station-level">
|
||||||
|
<span v-if="station.generalInfo">
|
||||||
<span
|
<span
|
||||||
v-if="station.onlineInfo && station.onlineInfo?.dispatcherExp != -1"
|
v-if="
|
||||||
:style="
|
station.generalInfo.reqLevel > -1 &&
|
||||||
calculateExpStyle(
|
station.generalInfo.availability != 'nonPublic' &&
|
||||||
station.onlineInfo.dispatcherExp,
|
station.generalInfo.availability != 'unavailable'
|
||||||
station.onlineInfo.dispatcherIsSupporter
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
|
:style="calculateExpStyle(station.generalInfo.reqLevel)"
|
||||||
>
|
>
|
||||||
{{ station.onlineInfo.dispatcherExp < 2 ? 'L' : station.onlineInfo.dispatcherExp }}
|
{{ station.generalInfo.reqLevel >= 2 ? station.generalInfo.reqLevel : 'L' }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="station-tracks">
|
<span v-else-if="station.generalInfo.availability == 'abandoned'">
|
||||||
<div v-if="station.generalInfo">
|
<img
|
||||||
<span
|
src="/images/icon-abandoned.svg"
|
||||||
v-if="station.generalInfo.routes.singleElectrifiedNames.length != 0"
|
alt="non-public"
|
||||||
class="track catenary"
|
:title="$t('sceneries.info.abandoned')"
|
||||||
:title="`${$t('sceneries.info.single-track-routes-catenary')}${
|
/>
|
||||||
station.generalInfo.routes.singleElectrifiedNames.length
|
</span>
|
||||||
}`"
|
|
||||||
>
|
|
||||||
{{ station.generalInfo.routes.singleElectrifiedNames.length }}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span
|
<span v-else-if="station.generalInfo.availability == 'nonPublic'">
|
||||||
v-if="station.generalInfo.routes.singleOtherNames.length != 0"
|
<img
|
||||||
class="track no-catenary"
|
src="/images/icon-lock.svg"
|
||||||
:title="`${$t('sceneries.info.single-track-routes-other')}${
|
alt="non-public"
|
||||||
station.generalInfo.routes.singleOtherNames.length
|
:title="$t('sceneries.info.non-public')"
|
||||||
}`"
|
/>
|
||||||
>
|
</span>
|
||||||
{{ station.generalInfo.routes.singleOtherNames.length }}
|
|
||||||
</span>
|
<span v-else>
|
||||||
|
<img
|
||||||
|
src="/images/icon-unavailable.svg"
|
||||||
|
alt="unavailable"
|
||||||
|
:title="$t('sceneries.info.unavailable')"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span v-else> ? </span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="station-status">
|
||||||
|
<StationStatusBadge
|
||||||
|
:isOnline="station.onlineInfo ? true : false"
|
||||||
|
:dispatcherStatus="station.onlineInfo?.dispatcherStatus"
|
||||||
|
/>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="station-dispatcher-name">
|
||||||
|
<span v-if="station.onlineInfo?.dispatcherName">
|
||||||
|
<b
|
||||||
|
v-if="apiStore.donatorsData.includes(station.onlineInfo.dispatcherName)"
|
||||||
|
@click.stop="openDonationCard"
|
||||||
|
data-tooltip-type="DonatorTooltip"
|
||||||
|
:data-tooltip-content="$t('donations.dispatcher-message')"
|
||||||
|
>
|
||||||
|
<img src="/images/icon-diamond.svg" alt="" />
|
||||||
|
{{ station.onlineInfo.dispatcherName }}
|
||||||
|
</b>
|
||||||
|
|
||||||
|
<div v-else>
|
||||||
|
{{ station.onlineInfo.dispatcherName }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="station-tracks">
|
<td class="station-dispatcher-exp">
|
||||||
<div v-if="station.generalInfo">
|
<span
|
||||||
<span
|
v-if="station.onlineInfo && station.onlineInfo?.dispatcherExp != -1"
|
||||||
v-if="station.generalInfo.routes.doubleElectrifiedNames.length != 0"
|
:style="
|
||||||
class="track catenary"
|
calculateExpStyle(
|
||||||
:title="`${$t('sceneries.info.double-track-routes-catenary')}${
|
station.onlineInfo.dispatcherExp,
|
||||||
station.generalInfo.routes.doubleElectrifiedNames.length
|
station.onlineInfo.dispatcherIsSupporter
|
||||||
}`"
|
)
|
||||||
>
|
"
|
||||||
{{ station.generalInfo.routes.doubleElectrifiedNames.length }}
|
>
|
||||||
</span>
|
{{ station.onlineInfo.dispatcherExp < 2 ? 'L' : station.onlineInfo.dispatcherExp }}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
<span
|
<td class="station-tracks">
|
||||||
v-if="station.generalInfo.routes.doubleOtherNames.length != 0"
|
<div v-if="station.generalInfo">
|
||||||
class="track no-catenary"
|
|
||||||
:title="`${$t('sceneries.info.double-track-routes-other')}${
|
|
||||||
station.generalInfo.routes.doubleOtherNames.length
|
|
||||||
}`"
|
|
||||||
>
|
|
||||||
{{ station.generalInfo.routes.doubleOtherNames.length }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="station-info">
|
|
||||||
<span
|
<span
|
||||||
v-if="station.generalInfo?.signalType"
|
v-if="station.generalInfo.routes.singleElectrifiedNames.length != 0"
|
||||||
class="scenery-icon icon-info"
|
class="track catenary"
|
||||||
:class="station.generalInfo?.controlType.replace('+', '-')"
|
:title="`${$t('sceneries.info.single-track-routes-catenary')}${
|
||||||
:title="
|
station.generalInfo.routes.singleElectrifiedNames.length
|
||||||
$t('sceneries.info.control-type') +
|
}`"
|
||||||
$t(`controls.${station.generalInfo?.controlType}`)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ $t(`controls.abbrevs.${station.generalInfo.controlType}`) }}
|
{{ station.generalInfo.routes.singleElectrifiedNames.length }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<img
|
<span
|
||||||
v-if="station.generalInfo?.signalType"
|
v-if="station.generalInfo.routes.singleOtherNames.length != 0"
|
||||||
class="icon-info"
|
class="track no-catenary"
|
||||||
:src="`/images/icon-${station.generalInfo.signalType}.svg`"
|
:title="`${$t('sceneries.info.single-track-routes-other')}${
|
||||||
:alt="station.generalInfo.signalType"
|
station.generalInfo.routes.singleOtherNames.length
|
||||||
:title="
|
}`"
|
||||||
$t('sceneries.info.signals-type') +
|
>
|
||||||
$t(`signals.${station.generalInfo.signalType}`)
|
{{ station.generalInfo.routes.singleOtherNames.length }}
|
||||||
"
|
</span>
|
||||||
/>
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
<img
|
<td class="station-tracks">
|
||||||
v-if="station.generalInfo?.SUP"
|
<div v-if="station.generalInfo">
|
||||||
class="icon-info"
|
<span
|
||||||
src="/images/icon-SUP.svg"
|
v-if="station.generalInfo.routes.doubleElectrifiedNames.length != 0"
|
||||||
alt="SUP (RASP-UZK)"
|
class="track catenary"
|
||||||
:title="$t('sceneries.info.SUP')"
|
:title="`${$t('sceneries.info.double-track-routes-catenary')}${
|
||||||
/>
|
station.generalInfo.routes.doubleElectrifiedNames.length
|
||||||
|
}`"
|
||||||
|
>
|
||||||
|
{{ station.generalInfo.routes.doubleElectrifiedNames.length }}
|
||||||
|
</span>
|
||||||
|
|
||||||
<img
|
<span
|
||||||
v-if="station.generalInfo?.ASDEK"
|
v-if="station.generalInfo.routes.doubleOtherNames.length != 0"
|
||||||
class="icon-info"
|
class="track no-catenary"
|
||||||
src="/images/icon-ASDEK.svg"
|
:title="`${$t('sceneries.info.double-track-routes-other')}${
|
||||||
alt="dSAT ASDEK"
|
station.generalInfo.routes.doubleOtherNames.length
|
||||||
:title="$t('sceneries.info.ASDEK')"
|
}`"
|
||||||
/>
|
>
|
||||||
|
{{ station.generalInfo.routes.doubleOtherNames.length }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
<img
|
<td class="station-info">
|
||||||
v-if="!station.generalInfo"
|
<span
|
||||||
class="icon-info"
|
v-if="station.generalInfo?.signalType"
|
||||||
src="/images/icon-unknown.svg"
|
class="scenery-icon icon-info"
|
||||||
alt="icon-unknown"
|
:class="station.generalInfo?.controlType.replace('+', '-')"
|
||||||
:title="$t('sceneries.info.unknown')"
|
:title="
|
||||||
/>
|
$t('sceneries.info.control-type') +
|
||||||
</td>
|
$t(`controls.${station.generalInfo?.controlType}`)
|
||||||
|
"
|
||||||
<td
|
|
||||||
class="station-users"
|
|
||||||
:class="{ inactive: !station.onlineInfo }"
|
|
||||||
data-tooltip-type="UsersTooltip"
|
|
||||||
:data-tooltip-content="JSON.stringify(station.onlineInfo?.stationTrains ?? [])"
|
|
||||||
>
|
>
|
||||||
<span class="text--primary">{{
|
{{ $t(`controls.abbrevs.${station.generalInfo.controlType}`) }}
|
||||||
station.onlineInfo?.stationTrains?.length ?? '-'
|
</span>
|
||||||
}}</span>
|
|
||||||
/
|
|
||||||
<span class="text--primary">{{ station.onlineInfo?.maxUsers ?? '-' }}</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="station-likes" :class="{ inactive: !station.onlineInfo }">
|
<img
|
||||||
<span>{{ station.onlineInfo?.dispatcherRate ?? '-' }}</span>
|
v-if="station.generalInfo?.signalType"
|
||||||
</td>
|
class="icon-info"
|
||||||
|
:src="`/images/icon-${station.generalInfo.signalType}.svg`"
|
||||||
|
:alt="station.generalInfo.signalType"
|
||||||
|
:title="
|
||||||
|
$t('sceneries.info.signals-type') + $t(`signals.${station.generalInfo.signalType}`)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
|
||||||
<td
|
<img
|
||||||
class="station-spawns"
|
v-if="station.generalInfo?.SUP"
|
||||||
:class="{ inactive: !station.onlineInfo }"
|
class="icon-info"
|
||||||
data-tooltip-type="SpawnsTooltip"
|
src="/images/icon-SUP.svg"
|
||||||
:data-tooltip-content="JSON.stringify(station.onlineInfo?.spawns ?? [])"
|
alt="SUP (RASP-UZK)"
|
||||||
>
|
:title="$t('sceneries.info.SUP')"
|
||||||
<span>{{ station.onlineInfo?.spawns.length ?? '-' }}</span>
|
/>
|
||||||
</td>
|
|
||||||
|
|
||||||
<td
|
<img
|
||||||
class="station-schedules all"
|
v-if="station.generalInfo?.ASDEK"
|
||||||
style="width: 30px"
|
class="icon-info"
|
||||||
:class="{ inactive: !station.onlineInfo }"
|
src="/images/icon-ASDEK.svg"
|
||||||
>
|
alt="dSAT ASDEK"
|
||||||
{{ station.onlineInfo?.scheduledTrainCount.all ?? '-' }}
|
:title="$t('sceneries.info.ASDEK')"
|
||||||
</td>
|
/>
|
||||||
|
|
||||||
<td
|
<img
|
||||||
class="station-schedules unconfirmed"
|
v-if="!station.generalInfo"
|
||||||
style="width: 30px"
|
class="icon-info"
|
||||||
:class="{ inactive: !station.onlineInfo }"
|
src="/images/icon-unknown.svg"
|
||||||
>
|
alt="icon-unknown"
|
||||||
{{ station.onlineInfo?.scheduledTrainCount.unconfirmed ?? '-' }}
|
:title="$t('sceneries.info.unknown')"
|
||||||
</td>
|
/>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td
|
<td
|
||||||
class="station-schedules confirmed"
|
class="station-users"
|
||||||
style="width: 30px"
|
:class="{ inactive: !station.onlineInfo }"
|
||||||
:class="{ inactive: !station.onlineInfo }"
|
data-tooltip-type="UsersTooltip"
|
||||||
>
|
:data-tooltip-content="JSON.stringify(station.onlineInfo?.stationTrains ?? [])"
|
||||||
{{ station.onlineInfo?.scheduledTrainCount.confirmed ?? '-' }}
|
>
|
||||||
</td>
|
<span class="text--primary">{{
|
||||||
</tr>
|
station.onlineInfo?.stationTrains?.length ?? '-'
|
||||||
</tbody>
|
}}</span>
|
||||||
</table>
|
/
|
||||||
</div>
|
<span class="text--primary">{{ station.onlineInfo?.maxUsers ?? '-' }}</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="station-likes" :class="{ inactive: !station.onlineInfo }">
|
||||||
|
<span>{{ station.onlineInfo?.dispatcherRate ?? '-' }}</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td
|
||||||
|
class="station-spawns"
|
||||||
|
:class="{ inactive: !station.onlineInfo }"
|
||||||
|
data-tooltip-type="SpawnsTooltip"
|
||||||
|
:data-tooltip-content="JSON.stringify(station.onlineInfo?.spawns ?? [])"
|
||||||
|
>
|
||||||
|
<span>{{ station.onlineInfo?.spawns.length ?? '-' }}</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td
|
||||||
|
class="station-schedules all"
|
||||||
|
style="width: 30px"
|
||||||
|
:class="{ inactive: !station.onlineInfo }"
|
||||||
|
>
|
||||||
|
{{ station.onlineInfo?.scheduledTrainCount.all ?? '-' }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td
|
||||||
|
class="station-schedules unconfirmed"
|
||||||
|
style="width: 30px"
|
||||||
|
:class="{ inactive: !station.onlineInfo }"
|
||||||
|
>
|
||||||
|
{{ station.onlineInfo?.scheduledTrainCount.unconfirmed ?? '-' }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td
|
||||||
|
class="station-schedules confirmed"
|
||||||
|
style="width: 30px"
|
||||||
|
:class="{ inactive: !station.onlineInfo }"
|
||||||
|
>
|
||||||
|
{{ station.onlineInfo?.scheduledTrainCount.confirmed ?? '-' }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div class="no-stations" v-else>
|
<div class="no-stations" v-else>
|
||||||
<div>
|
<div>
|
||||||
@@ -415,12 +412,15 @@ export default defineComponent({
|
|||||||
@import '../../styles/icons.scss';
|
@import '../../styles/icons.scss';
|
||||||
|
|
||||||
$rowCol: #424242;
|
$rowCol: #424242;
|
||||||
|
$tableBgCol: #555555;
|
||||||
|
|
||||||
.station_table {
|
.station_table {
|
||||||
height: 80vh;
|
height: 80vh;
|
||||||
min-height: 700px;
|
min-height: 700px;
|
||||||
overflow: auto;
|
overflow-y: scroll;
|
||||||
|
overflow-x: auto;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
background-color: $tableBgCol;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-stations {
|
.no-stations {
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
scrollBehavior(to, from, savedPosition) {
|
scrollBehavior(to, from, savedPosition) {
|
||||||
if (to.name == 'SceneryView' && from.name !== to.name && from.query['view'] === undefined)
|
if (to.name == 'SceneryView' && from.name !== to.name && from.query['view'] === undefined)
|
||||||
return { el: `.app_main` };
|
return { el: `.app_main`, top: -15 };
|
||||||
|
|
||||||
if (savedPosition) return savedPosition;
|
if (savedPosition) return savedPosition;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -121,10 +121,6 @@ export default defineComponent({
|
|||||||
Status: Status.Data
|
Status: Status.Data
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// activated() {
|
|
||||||
// this.loadSelectedCheckpoint();
|
|
||||||
// },
|
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
@@ -215,11 +211,10 @@ button.back-btn {
|
|||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
max-width: var(--max-container-width);
|
max-width: var(--max-container-width);
|
||||||
min-height: 100vh;
|
width: 100%;
|
||||||
|
|
||||||
margin: 1rem 0;
|
padding: 1rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
&[data-timetable-only='true'] {
|
&[data-timetable-only='true'] {
|
||||||
@@ -233,9 +228,7 @@ button.back-btn {
|
|||||||
background-color: #181818;
|
background-color: #181818;
|
||||||
padding: 1em 0.5em;
|
padding: 1em 0.5em;
|
||||||
|
|
||||||
height: 100vh;
|
height: calc(100vh - 0.5em);
|
||||||
min-height: 750px;
|
|
||||||
max-height: 1000px;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -246,9 +239,7 @@ button.back-btn {
|
|||||||
background: #181818;
|
background: #181818;
|
||||||
padding: 1em 0.5em;
|
padding: 1em 0.5em;
|
||||||
|
|
||||||
height: 100vh;
|
height: calc(100vh - 0.5em);
|
||||||
min-height: 750px;
|
|
||||||
max-height: 1000px;
|
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user