diff --git a/assets/css/main.css b/assets/css/main.css index 5f1f62b..defd33a 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -53,6 +53,7 @@ main { justify-content: center; align-items: flex-end; flex-wrap: wrap; + overflow: hidden; } :root { @@ -62,15 +63,17 @@ main { } .nav--hide { - transition: margin-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s; - margin-top: 0; + transition: padding-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s; + padding-top: 0; max-height: 0; + overflow: hidden; } .nav--show { - margin-top: 3.5rem; - max-height: 250px; - transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s); + padding-top: 3.5rem; + max-height: 18rem; + transition: padding-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s); + overflow: visible; } .btn { diff --git a/components/Map.vue b/components/Map.vue index fe037b0..376e3ad 100644 --- a/components/Map.vue +++ b/components/Map.vue @@ -7,7 +7,7 @@ selectedDest: {{ selectedDest.key }} --> - + "${today}")` const scheduleFetchSort = '&sort[0][field]=Departure_TimeL&sort[0][direction]=asc' diff --git a/pages/flights.vue b/pages/flights.vue index b40bb6f..9124adf 100644 --- a/pages/flights.vue +++ b/pages/flights.vue @@ -192,14 +192,6 @@ export default { const today = new Date().toLocaleDateString('en-CA') - // function addDays (date, days) { - // const result = new Date(date) - // result.setDate(result.getDate() + days) - // return result - // } - - // const tomorrow = addDays(new Date(), 1).toLocaleDateString('en-CA') - const scheduleFetchFilterFormula = `AND(Is_Current="Yes",Origin_IATA="${this.$route.params.o}",Destination_IATA="${this.$route.params.d}",Effective_End>"${today}",SEARCH("${new Date(this.$route.params.departure).getUTCDay()}",Frequency)>0)` // console.log(scheduleFetchFilterFormula) const scheduleFetchSort = '&sort[0][field]=Departure_TimeL&sort[0][direction]=asc' diff --git a/pages/go.vue b/pages/go.vue index 6a10439..0da7f1e 100644 --- a/pages/go.vue +++ b/pages/go.vue @@ -47,10 +47,10 @@
-
+
from one of {{ airports_orig.length }} local airports
-
+
to one of {{ airports_dest.length }} {{ getCompliment() }} destinations
@@ -61,7 +61,7 @@ {{ selectedDest }} -->
-