Skip to content

Commit

Permalink
fix: header switch
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Aug 28, 2024
1 parent e76ff8a commit 14bc7e4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<!-- <Locale /> -->
</div>

<MenuSmartphone v-if="width <= 1050" />
<MenuSmartphone v-if="isMobileOrTablet" />
<MenuDesktop v-else />
</header>
</template>

<script setup lang="ts">
const { width } = useWindowSize()
const { isMobileOrTablet } = useDevice()
</script>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion apps/website/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export default defineNuxtConfig({
signInRedirectUrl: '', // NUXT_PUBLIC_SIGN_IN_REDIRECT_URL
},
},
modules: ['@vueuse/nuxt', 'nuxt-auth-utils'],
modules: ['@vueuse/nuxt', 'nuxt-auth-utils', '@nuxtjs/device'],
compatibilityDate: '2024-08-18',
})
1 change: 1 addition & 0 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@d-fischer/typed-event-emitter": "^3.3.3",
"@nuxt/devtools": "^1.3.9",
"@nuxt/kit": "^3.10.0",
"@nuxtjs/device": "^3.1.1",
"@types/howler": "^2.2.11",
"@types/node": "^22.5.1",
"@vueuse/core": "^11.0.1",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14bc7e4

Please sign in to comment.