Skip to content

Commit 37e1d92

Browse files
committed
docs(AppNav): make client-only
1 parent 733394b commit 37e1d92

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

apps/docs/src/components/app/AppNav.vue

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,33 @@
1919
</script>
2020

2121
<template>
22-
<Atom
23-
:as
24-
class="bg-4 app-nav flex flex-col fixed top-[72px] w-[220px] overflow-y-auto py-4 transition-transform duration-200 ease-in-out"
25-
:class="[
26-
breakpoints.isMobile.value && !app.drawer ? 'translate-x-[-100%]' : 'translate-x-0',
27-
breakpoints.isMobile.value ? 'top-[72px] bottom-[24px]' : 'top-[24px] bottom-0'
28-
]"
29-
>
30-
<ul class="flex gap-2 flex-col">
31-
<template v-for="(nav, i) in app.nav" :key="i">
32-
<div v-if="nav.divider" class="px-4">
33-
<AppDivider />
34-
</div>
22+
<client-only>
23+
<Atom
24+
:as
25+
class="bg-4 app-nav flex flex-col fixed top-[72px] w-[220px] overflow-y-auto py-4 transition-transform duration-200 ease-in-out"
26+
:class="[
27+
breakpoints.isMobile.value && !app.drawer ? 'translate-x-[-100%]' : 'translate-x-0',
28+
breakpoints.isMobile.value ? 'top-[72px] bottom-[24px]' : 'top-[24px] bottom-0'
29+
]"
30+
>
31+
<ul class="flex gap-2 flex-col">
32+
<template v-for="(nav, i) in app.nav" :key="i">
33+
<div v-if="nav.divider" class="px-4">
34+
<AppDivider />
35+
</div>
3536

36-
<AppNavLink
37-
v-else
38-
:children="nav.children"
39-
class="px-4"
40-
:to="nav.to || ''"
41-
>
42-
{{ nav.name }}
43-
</AppNavLink>
44-
</template>
45-
</ul>
46-
</Atom>
37+
<AppNavLink
38+
v-else
39+
:children="nav.children"
40+
class="px-4"
41+
:to="nav.to || ''"
42+
>
43+
{{ nav.name }}
44+
</AppNavLink>
45+
</template>
46+
</ul>
47+
</Atom>
48+
</client-only>
4749
</template>
4850

4951
<style lang="sass">

0 commit comments

Comments
 (0)