From 8d9baf8d7d120130195b18fe08edb72f73cb664f Mon Sep 17 00:00:00 2001 From: Vasilii Mikhailovskii Date: Thu, 19 Dec 2024 13:48:20 +0200 Subject: [PATCH] use IntersectionObserver to show scrolling --- apps/frontend/auto-imports.d.ts | 1 + apps/frontend/package.json | 1 + apps/frontend/src/layouts/LayoutWithTabs.vue | 44 +++++++++----------- apps/frontend/tailwind.config.ts | 6 ++- apps/frontend/vite.config.ts | 4 ++ pnpm-lock.yaml | 40 +++++++++++++++++- 6 files changed, 69 insertions(+), 27 deletions(-) diff --git a/apps/frontend/auto-imports.d.ts b/apps/frontend/auto-imports.d.ts index e1c94d8..9ef39c5 100644 --- a/apps/frontend/auto-imports.d.ts +++ b/apps/frontend/auto-imports.d.ts @@ -57,6 +57,7 @@ declare global { const useAttrs: typeof import('vue')['useAttrs'] const useCssModule: typeof import('vue')['useCssModule'] const useCssVars: typeof import('vue')['useCssVars'] + const useElementVisibility: typeof import('@vueuse/core')['useElementVisibility'] const useHead: typeof import('unhead')['useHead'] const useHeadSafe: typeof import('unhead')['useHeadSafe'] const useId: typeof import('vue')['useId'] diff --git a/apps/frontend/package.json b/apps/frontend/package.json index dc9ec1b..0ec92f0 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -25,6 +25,7 @@ "@primevue/themes": "^4.2.1", "@tanstack/vue-query": "^5.60.6", "@unhead/vue": "^1.11.13", + "@vueuse/core": "^12.0.0", "events": "^3.3.0", "md5": "^2.3.0", "pinia": "^2.2.6", diff --git a/apps/frontend/src/layouts/LayoutWithTabs.vue b/apps/frontend/src/layouts/LayoutWithTabs.vue index a4384ff..0205c1e 100644 --- a/apps/frontend/src/layouts/LayoutWithTabs.vue +++ b/apps/frontend/src/layouts/LayoutWithTabs.vue @@ -4,25 +4,26 @@ >
+
+
@@ -52,9 +53,6 @@