From 93da9fbcbe3b0cb49dd8239af51e30d371148d9e Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 26 Aug 2026 12:49:07 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Scrollfunktion=20f=C3=BCr=20Mannsch?= =?UTF-8?q?aften-Untermen=C3=BC=20hinzu=20und=20optimiere=20Button-Interak?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Navigation.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/components/Navigation.vue b/components/Navigation.vue index 92e88e8..63f408d 100755 --- a/components/Navigation.vue +++ b/components/Navigation.vue @@ -192,6 +192,7 @@ @@ -876,6 +880,7 @@ const route = useRoute() const isMobileMenuOpen = ref(false) const mobileSubmenu = ref(null) const mannschaften = ref([]) +const mannschaftenSubmenuRail = ref(null) const hasGalleryImages = ref(false) const showCmsDropdown = ref(false) const authStore = useAuthStore() @@ -913,6 +918,16 @@ const toggleMobileSubmenu = (menu) => { mobileSubmenu.value = mobileSubmenu.value === menu ? null : menu } +const scrollMannschaftenSubmenuRight = () => { + const rail = mannschaftenSubmenuRail.value + if (!rail) return + + rail.scrollBy({ + left: Math.max(rail.clientWidth * 0.8, 160), + behavior: 'smooth' + }) +} + const loadMannschaften = async () => { try { const attempt = async () => {