diff --git a/beta/src/components/Layout/Page.tsx b/beta/src/components/Layout/Page.tsx index 755c167c4..2f8ad2f4d 100644 --- a/beta/src/components/Layout/Page.tsx +++ b/beta/src/components/Layout/Page.tsx @@ -25,9 +25,7 @@ export function Page({routeTree, children}: PageProps) {
-
+
{children}
diff --git a/beta/src/components/Layout/Sidebar/Sidebar.tsx b/beta/src/components/Layout/Sidebar/Sidebar.tsx index a5539263a..0b03a73a6 100644 --- a/beta/src/components/Layout/Sidebar/Sidebar.tsx +++ b/beta/src/components/Layout/Sidebar/Sidebar.tsx @@ -18,7 +18,7 @@ export function Sidebar({isMobileOnly}: {isMobileOnly?: boolean}) { const {menuRef, isOpen} = React.useContext(MenuContext); const isMobileSidebar = useMediaQuery(SIDEBAR_BREAKPOINT); let routeTree = React.useContext(SidebarContext); - const isHidden = isMobileOnly && !isMobileSidebar; + const isHidden = isMobileSidebar ? !isOpen : false; // HACK. Fix up the data structures instead. if ((routeTree as any).routes.length === 1) { @@ -62,14 +62,10 @@ export function Sidebar({isMobileOnly}: {isMobileOnly?: boolean}) { return (