Skip to content

Commit

Permalink
fix(frontend): layout
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Mar 6, 2025
1 parent 66abc4a commit e2d09fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/src/layouts/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { SidebarProvider } from '@/components/ui/sidebar'
<Header />
<SidebarProvider class="mt-14">
<AppSidebar />
<div class="h-dvh w-dvw">
<slot />
<div class="h-full w-dvw">
<RouterView />
</div>
</SidebarProvider>
</div>
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ const router = createRouter({
{
path: '/dashboard',
name: 'dashboard',
component: () => import('@/views/DashboardView.vue'),
component: () => import('@/layouts/Dashboard.vue'),
children: [
{
path: '/dashboard',
component: () => import('@/views/DashboardView.vue'),
},
],
},
],
})
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ useHead({
})
</script>

<template>
<Dashboard>
<RouterView />
</Dashboard>
</template>
<template></template>

0 comments on commit e2d09fb

Please sign in to comment.