feat: Add bottom sidebar on mobile

This commit is contained in:
Jesse Wierzbinski 2024-04-30 22:40:33 -10:00
parent 951a806477
commit d9173b4ce2
No known key found for this signature in database
11 changed files with 187 additions and 66 deletions

View file

@ -1,5 +1,5 @@
<template>
<HeadlessMenu v-slot="{ close }">
<HeadlessMenu v-slot="{ close }" v-bind="$props">
<slot name="button"></slot>
<HeadlessMenuItems @click="close" class="fixed z-20 inset-0 z-5 bg-black/50">
@ -25,5 +25,5 @@
<script setup lang="ts">
const { width } = useWindowSize();
const isSmallScreen = computed(() => width.value < 640);
const isSmallScreen = computed(() => width.value < 768);
</script>