From 0a69b2de28764d5b108624205a33fcf45676f7f8 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Wed, 10 May 2023 17:06:50 +0200 Subject: [PATCH] Hide for mobile --- components/Nav/TableOfContent.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/Nav/TableOfContent.vue b/components/Nav/TableOfContent.vue index d0389624..45b9639e 100644 --- a/components/Nav/TableOfContent.vue +++ b/components/Nav/TableOfContent.vue @@ -1,14 +1,23 @@ <script setup lang="ts"> +import { useDisplay } from "vuetify"; const props = defineProps<{ links: any; }>(); +const { mobile } = useDisplay(); + // const { navigation } = useContent(); // console.log(navigation.value); </script> <template> - <v-navigation-drawer id="app-toc" location="right" :border="0" permanent> + <v-navigation-drawer + v-if="!mobile" + id="app-toc" + location="right" + :border="0" + permanent + > <template #prepend> <div class="text-h6 font-weight-medium mt-4 mb-2 ms-4">Contents</div> </template> -- GitLab