refactor(ui): the phone uses the topbar crumbs; the sidebar sheet goes
This commit is contained in:
8 files changed
+20
-206
No files matched your search
@@ -1,25 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import NavMain from "@/components/NavMain.vue";
|
||||
import NavUser from "@/components/NavUser.vue";
|
||||
import TeamSwitcher from "@/components/TeamSwitcher.vue";
|
||||
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, useSidebar } from "@/components/ui/sidebar";
|
||||
|
||||
defineProps<{ hidden: string[] }>();
|
||||
|
||||
// Desktop navigation lives in the topbar; only the phone sheet remains.
|
||||
const { isMobile } = useSidebar();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Sidebar v-if="isMobile" class="h-dvh">
|
||||
<SidebarHeader>
|
||||
<TeamSwitcher />
|
||||
</SidebarHeader>
|
||||
<SidebarContent>
|
||||
<NavMain :hidden="hidden" />
|
||||
</SidebarContent>
|
||||
<SidebarFooter>
|
||||
<NavUser />
|
||||
</SidebarFooter>
|
||||
</Sidebar>
|
||||
</template>
|
||||
Reference in new issue
Block a user