Skip to content

Commit be83f96

Browse files
committed
fix: make header sticky
1 parent 0e71a27 commit be83f96

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

app/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ useHead({
2626

2727
<template>
2828
<ConfigProvider :use-id="useIdFunction">
29+
<NuxtLoadingIndicator />
30+
<VitePwaManifest />
2931
<div v-if="!isClerkLoaded || isEnspireLoading" class="absolute z-100 h-screen w-screen bg-background">
3032
<div class="h-full w-full flex flex-col items-center justify-center space-y-6">
3133
<div class="flex justify-center space-x-1">
@@ -39,8 +41,6 @@ useHead({
3941
</div>
4042
<div>
4143
<NuxtLayout class="z-10">
42-
<NuxtLoadingIndicator />
43-
<VitePwaManifest />
4444
<NuxtPage />
4545
</NuxtLayout>
4646
</div>

app/components/custom/sidebar.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<script setup lang="ts">
22
import type { AllClubs } from '@@/types/api/user/all_clubs'
3-
import {
4-
ChevronRight,
5-
ChevronsUpDown,
6-
} from 'lucide-vue-next'
73
import { useClerk, useUser } from 'vue-clerk'
84
95
const { user } = useUser()
@@ -270,7 +266,7 @@ const sidebarData = ref({
270266
</SidebarFooter>
271267
<SidebarRail />
272268
</Sidebar>
273-
<SidebarInset>
269+
<SidebarInset class="h-full flex">
274270
<slot />
275271
</SidebarInset>
276272
</SidebarProvider>

app/layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ if (clubs.value) {
1919

2020
<template>
2121
<CustomSidebar>
22-
<header class="group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 h-16 flex shrink-0 items-center gap-2 transition-[width,height] ease-linear">
22+
<header class="group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 sticky top-0 z-20 h-14 flex shrink-0 items-center gap-2 bg-background transition-[width,height] ease-linear">
2323
<div class="flex items-center gap-2 px-4">
2424
<SidebarTrigger class="-ml-1" />
2525
<Separator orientation="vertical" class="mr-2 h-4" />
2626
<CustomBreadcrumb />
2727
</div>
2828
</header>
29-
<ScrollArea class="h-full w-full px-4 pt-8 lg:px-8">
29+
<ScrollArea class="z-10 w-full flex-1 px-4 pt-6 lg:px-8">
3030
<div class="pb-24">
3131
<main>
3232
<slot />

0 commit comments

Comments
 (0)