Bugfixing

This commit is contained in:
Michal Kváček
2023-08-29 21:28:29 +02:00
parent dd248d4432
commit ab1e20e6eb
7 changed files with 25 additions and 13 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ const props = defineProps({
</q-item-section>
<q-item-section>
<div>
<strong>{{ flight.takeoffAirport.name }}</strong>,
<strong>{{flight.takeoffAirport.icaoCode}}</strong> ({{ flight.takeoffAirport.name }}),
čas vzletu: {{ formatDatetime(flight.takeoffDatetime, FORMAT_TIME) }}
<WeatherInfo class="q-mx-sm" v-if="flight.takeoffWeatherInfo" :weather="flight.takeoffWeatherInfo"/>
@@ -67,7 +67,7 @@ const props = defineProps({
</q-item-section>
<q-item-section>
<div>
<strong>{{ flight.landingAirport.name }}</strong>,
<strong>{{ flight.landingAirport.icaoCode }}</strong> ({{ flight.landingAirport.name }}),
čas přistání: {{ formatDatetime(flight.landingDatetime, FORMAT_TIME) }}
<WeatherInfo class="q-mx-sm" v-if="flight.landingWeatherInfo" :weather="flight.landingWeatherInfo"/>
</div>
+5 -2
View File
@@ -42,11 +42,14 @@ onMounted(() => {
const photo = computed(() => props.photos[photoIndex.value]);
const nextPhoto = () => {
if (imageFullscreen.value) return;
if (photoIndex.value < props.photos.length - 1)
photoIndex.value++
}
const prevPhoto = () => {
if (imageFullscreen.value) return;
if (photoIndex.value > 0) photoIndex.value--;
}
@@ -85,8 +88,8 @@ const imageFullscreen = ref(false);
<div :class="{'relative-position': true, 'image-full-height': imageFullscreen}">
<div class="text-center">
<inner-image-zoom
move-type="pan"
:zoomScale="0.75"
move-type="drag"
:zoomScale="0.5"
:hide-hint="true"
:after-zoom-in="() => imageFullscreen = true"
:after-zoom-out="() => imageFullscreen = false"