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 () => {