diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index b63a954..08c7a0f 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -193,6 +193,7 @@ declare global { const useImage: typeof import('@vueuse/core')['useImage'] const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll'] const useInjectedScroll: typeof import('./composables/useInjectedScroll')['useInjectedScroll'] + const useInjectedSidebar: typeof import('./composables/useInjectedSidebar')['useInjectedSidebar'] const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver'] const useInterval: typeof import('@vueuse/core')['useInterval'] const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn'] @@ -508,6 +509,7 @@ declare module 'vue' { readonly useImage: UnwrapRef readonly useInfiniteScroll: UnwrapRef readonly useInjectedScroll: UnwrapRef + readonly useInjectedSidebar: UnwrapRef readonly useIntersectionObserver: UnwrapRef readonly useInterval: UnwrapRef readonly useIntervalFn: UnwrapRef diff --git a/src/components.d.ts b/src/components.d.ts index 38db0e7..96df8f8 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -30,6 +30,7 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] ScrollIndicator: typeof import('./components/partials/ScrollIndicator.vue')['default'] + SidebarOverlay: typeof import('./components/SidebarOverlay.vue')['default'] SocialCard: typeof import('./components/partials/about/SocialCard.vue')['default'] SocialLink: typeof import('./components/partials/about/SocialLink.vue')['default'] ToggleButton: typeof import('./components/partials/ToggleButton.vue')['default'] diff --git a/src/components/AppLogo.vue b/src/components/AppLogo.vue index c7dafcd..2ed6c84 100644 --- a/src/components/AppLogo.vue +++ b/src/components/AppLogo.vue @@ -3,6 +3,8 @@ import { breakpointsTailwind } from '@vueuse/core' import { useInjectedScroll } from '~/composables/useInjectedScroll' const { isOnTop, isOnBottom } = useInjectedScroll() +const { isSidebarOpen } = useInjectedSidebar() + const notTopBottom = computed(() => { return !isOnTop.value && !isOnBottom.value }) @@ -21,8 +23,8 @@ const onLgBreakpoint = computed(() => {