diff --git a/frontend/app/[team]/layout.tsx b/frontend/app/[team]/layout.tsx index 4833fa98e..b9c1a09c8 100644 --- a/frontend/app/[team]/layout.tsx +++ b/frontend/app/[team]/layout.tsx @@ -105,8 +105,8 @@ export default function RootLayout({ return (
{showUnlockDialog && } @@ -114,7 +114,7 @@ export default function RootLayout({ {showNav && }
-
+
{children}
diff --git a/frontend/components/layout/Sidebar.tsx b/frontend/components/layout/Sidebar.tsx index 19ccd41c8..0e99e741c 100644 --- a/frontend/components/layout/Sidebar.tsx +++ b/frontend/components/layout/Sidebar.tsx @@ -224,6 +224,77 @@ const Sidebar = () => { ) } + // Compact organisation switcher for the mobile bottom nav. Reuses the same + // switching logic as the desktop OrgsMenu but renders as a single icon that + // opens a menu upward. Only shown when the user belongs to multiple orgs. + const MobileOrgSwitcher = () => ( + + {({ open }) => ( + <> + + + {activeOrganisation?.name?.[0]?.toUpperCase() ?? } + + + + +
+ {organisations?.map((org: OrganisationType) => ( + + {({ active }) => ( + +
+
+
+ +
+ {org.name} +
+ +
+ + )} +
+ ))} +
+ {!isOwner && ( +
+ + + +
+ )} +
+
+ + )} +
+ ) + const links: SidebarLinkT[] = [ { name: 'Home', @@ -264,46 +335,82 @@ const Sidebar = () => { ] return ( -
-