From 348025afeeda05cbf9fce21ac71454b7e0b156b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 19 Jan 2026 22:26:14 +0100 Subject: [PATCH] Nastrel nove podoby detailu letu --- .../flightPlans/FlightPlanRoute.vue | 2 +- src/components/flights/FlightsList.vue | 58 +++++--- src/components/photos/PhotoGallery.vue | 16 +-- .../public/pilotProfile/FlightDetailPage.vue | 134 ++++++++++++++---- .../pilotProfile/FlightDetailPageOld.vue | 108 ++++++++++++++ src/router/routes.js | 8 +- 6 files changed, 260 insertions(+), 66 deletions(-) create mode 100644 src/pages/public/pilotProfile/FlightDetailPageOld.vue 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 @@ +