From 9d0b1a6b159fedd91496a4df9d7e201a6049ebbb Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Wed, 14 Jan 2026 21:34:06 +0700 Subject: [PATCH] feat: collapsible header on scroll for catalog pages - Add useScrollCollapse composable to track scroll and collapse state - Update topnav.vue to show collapsed bar with chevron when scrolled - Add collapse button (chevron up) to SubNavigation - Make SubNavigation sticky below MainNavigation - Update CatalogPage map/searchbar positions based on header state --- app/components/navigation/SubNavigation.vue | 16 +++++- app/components/page/CatalogPage.vue | 36 ++++++++++--- app/composables/useScrollCollapse.ts | 56 +++++++++++++++++++++ app/layouts/topnav.vue | 36 ++++++++++++- 4 files changed, 136 insertions(+), 8 deletions(-) create mode 100644 app/composables/useScrollCollapse.ts diff --git a/app/components/navigation/SubNavigation.vue b/app/components/navigation/SubNavigation.vue index 8a56b9d..bc6e9bc 100644 --- a/app/components/navigation/SubNavigation.vue +++ b/app/components/navigation/SubNavigation.vue @@ -1,6 +1,15 @@