diff --git a/src/components/flightPlans/FlightPlanRoute.vue b/src/components/flightPlans/FlightPlanRoute.vue index c6b055d..82eeac0 100644 --- a/src/components/flightPlans/FlightPlanRoute.vue +++ b/src/components/flightPlans/FlightPlanRoute.vue @@ -83,7 +83,7 @@ const allPlacesOptions = computed(() => { { else return {name: "flightDetail", params: {id: flight.id}} }; + +const $q = useQuasar() + + diff --git a/src/components/photos/PhotoGallery.vue b/src/components/photos/PhotoGallery.vue index cacdfdc..870f1f6 100644 --- a/src/components/photos/PhotoGallery.vue +++ b/src/components/photos/PhotoGallery.vue @@ -46,17 +46,6 @@ const initLightbox = () => { $lightbox.value.init(); } -const isCollapsed = ref(true); -const photosCollapseLimit = computed(() => { - if ($q.screen.width <= $q.screen.sizes.sm) return 2; - else if ($q.screen.width <= $q.screen.sizes.md) return 3; - else return 4; -}); - -onMounted(() => { - isCollapsed.value = props.photos.length >= photosCollapseLimit.value; -}); - onUnmounted(() => { if ($lightbox.value) { $lightbox.value.destroy(); @@ -81,7 +70,7 @@ watch(() => [openedPhoto.value, $lightbox.value], () => { diff --git a/src/pages/public/pilotProfile/FlightDetailPage.vue b/src/pages/public/pilotProfile/FlightDetailPage.vue index 2f65543..6ce11fc 100644 --- a/src/pages/public/pilotProfile/FlightDetailPage.vue +++ b/src/pages/public/pilotProfile/FlightDetailPage.vue @@ -1,41 +1,44 @@ +