mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Dodano dodatkowe możliwości zamknięcia karty rozkładu jazdy
This commit is contained in:
@@ -284,6 +284,8 @@ export default defineComponent({
|
|||||||
&.extended-view {
|
&.extended-view {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
|
||||||
grid-template-rows: 1fr;
|
grid-template-rows: 1fr;
|
||||||
|
|
||||||
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.simple-view {
|
&.simple-view {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="train-table">
|
<div class="train-table" @keydown.esc="closeTimetableCard">
|
||||||
<transition name="anim" mode="out-in">
|
<transition name="anim" mode="out-in">
|
||||||
<div :key="timetableLoaded">
|
<div :key="timetableLoaded">
|
||||||
<div class="traffic-warning" v-if="distanceLimitExceeded">
|
<div class="traffic-warning" v-if="distanceLimitExceeded">
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, computed, ComputedRef, defineComponent, inject, Ref, ref, watch } from '@vue/runtime-core';
|
import { computed, ComputedRef, defineComponent, inject, Ref } from '@vue/runtime-core';
|
||||||
import { useStore } from '@/store';
|
import { useStore } from '@/store';
|
||||||
|
|
||||||
import defaultVehicleIconsJSON from '@/data/defaultVehicleIcons.json';
|
import defaultVehicleIconsJSON from '@/data/defaultVehicleIcons.json';
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="bg-dimmer" @click="close"></div>
|
<div class="bg-dimmer" @click="close"></div>
|
||||||
<section class="train-timetable-card card">
|
<section class="train-timetable-card card">
|
||||||
|
<div class="card-exit" @click="close" @keydown.enter="close" tabindex="0">
|
||||||
|
<img :src="icons.exit" alt="icon-exit" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<train-info :train="train" />
|
<train-info :train="train" />
|
||||||
|
|
||||||
<train-schedule :followingStops="train.timetableData?.followingStops" ref="card-inner" tabindex="0" @focus="test" />
|
<train-schedule :followingStops="train.timetableData?.followingStops" ref="card-inner" tabindex="0" @focus="test" />
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -40,9 +41,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
console.log("xd");
|
console.log('xd');
|
||||||
|
},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -29,10 +29,10 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin: 0.3em 0em;
|
margin: 0.5em 0.5em;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 1.6em;
|
width: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
Reference in New Issue
Block a user