refactor(ui): the phone uses the topbar crumbs; the sidebar sheet goes

This commit is contained in:
sam committed 2026-11-13 22:21:17 +11:00
1 parent 41f44c43a1
commit 21dfb56e50
8 files changed
+20 -206

No files matched your search

-25
View File
@@ -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>