From 39f8bd82f6fece86ccb5afad3bbe729c9a3183d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Conde?= Date: Mon, 4 Sep 2023 12:56:05 +0200 Subject: [PATCH] changes --- src/App.vue | 10 ++++----- src/components/Menu.vue | 41 ++++++++++++++++++++++++++++++----- src/i18n/de.js | 2 +- src/i18n/en.js | 2 +- src/i18n/es.js | 2 +- src/style.css | 4 ++++ src/views/contact/Contact.vue | 20 ++++++++++++----- 7 files changed, 61 insertions(+), 20 deletions(-) diff --git a/src/App.vue b/src/App.vue index 52f0221..2ab5a5e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,13 +26,13 @@ }, methods: { handleScroll() { - const limit = 430; + const limit = this.$isMobile() ? 115 : 430; if (!pagesWithCarousel.includes(this.$route.name)) { this.stickyClass = 'has-sticky has-sticky-1' return; } - if (window.scrollY > 0 && window.scrollY <= limit) { + if (window.scrollY > 5 && window.scrollY <= limit) { this.stickyClass = 'has-sticky has-sticky-0'; } else if(window.scrollY > limit) { this.stickyClass = 'has-sticky has-sticky-1'; @@ -45,7 +45,7 @@