mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add bottom sidebar on mobile
This commit is contained in:
parent
951a806477
commit
d9173b4ce2
11 changed files with 187 additions and 66 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue