Skip to content

Commit 4aa465f

Browse files
Hide elm on sm
1 parent a06a769 commit 4aa465f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/documentation/layout/AppBar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
>
1515
<v-icon icon="mdi:mdi-menu"></v-icon>
1616
</v-app-bar-nav-icon>
17+
1718
<v-app-bar-nav-icon
1819
v-else
1920
class="nav-drawer-btn me-2 ms-3"
@@ -64,6 +65,7 @@
6465
</v-select>
6566

6667
<v-chip
68+
v-if="isSmAndUp"
6769
class="me-2 d-flex justify-center"
6870
:class="`badge-${selectedLibrary.id}`"
6971
:href="selectedLibrary.id === 'prismjs'
@@ -122,7 +124,7 @@
122124
import { onMounted, ref } from 'vue';
123125
import { useCoreStore } from '@/stores/index';
124126
import { useMenuStore } from '@/stores/menu';
125-
import { useTheme } from 'vuetify';
127+
import { useDisplay, useTheme } from 'vuetify';
126128
127129
const emit = defineEmits(['changedTheme', 'updatedDrawer']);
128130
@@ -147,11 +149,13 @@ onMounted(() => {
147149
const menuStore = useMenuStore();
148150
const store = useCoreStore();
149151
const theme = useTheme();
152+
const { smAndUp } = useDisplay();
150153
151154
152155
const links = store.links;
153156
const themeName = ref('dark');
154157
const drawer = ref(true);
158+
const isSmAndUp = computed(() => smAndUp.value);
155159
156160
const menuItems = [...menuStore.libraryItems];
157161

0 commit comments

Comments
 (0)