Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix home sidebar

Jonathan Summers-Muirc06148a90c46
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
index 6852d74913f..e852ba2bb57 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
@@ -297,7 +297,9 @@ const SideNav = () => {
<div
className={[
'transition-all duration-150 ease-out',
- level === 'home' ? 'opacity-100 ml-0 delay-150' : 'opacity-0 -ml-8 invisible absolute',
+ level === 'home' || !level
+ ? 'opacity-100 ml-0 delay-150'
+ : 'opacity-0 -ml-8 invisible absolute',
].join(' ')}
>
<ul className="relative w-full flex flex-col gap-4">
diff --git a/apps/docs/hooks/useMenuState.ts b/apps/docs/hooks/useMenuState.ts
index 519fe7b503a..04535ab6726 100644
--- a/apps/docs/hooks/useMenuState.ts
+++ b/apps/docs/hooks/useMenuState.ts
@@ -2,7 +2,7 @@ import { proxy, useSnapshot } from 'valtio'
export const menuState = proxy({
// values
- menuActiveRefId: '',
+ menuActiveRefId: 'home',
// set states
setMenuActiveRefId: (value) => {
menuState.menuActiveRefId = value