Skip to content

Commit

Permalink
📱hide_toc != mobileOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Aug 23, 2024
1 parent 01c5668 commit 2da3a53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/site/src/components/Navigation/PrimarySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,13 @@ export const PrimarySidebar = ({
nav,
footer,
headings,
mobileOnly,
}: {
sidebarRef?: React.RefObject<HTMLElement>;
nav?: SiteManifest['nav'];
headings?: Heading[];
footer?: React.ReactNode;
showNav?: boolean;
mobileOnly?: boolean;
}) => {
const top = useThemeTop();
const grid = useGridSystemProvider();
Expand Down Expand Up @@ -163,7 +164,8 @@ export const PrimarySidebar = ({
{
flex: open,
'bg-white dark:bg-stone-900': open, // just apply when open, so that theme can transition
'hidden xl:flex': !open,
'hidden xl:flex': !open && !mobileOnly,
hidden: !open && mobileOnly,
},
)}
>
Expand Down

0 comments on commit 2da3a53

Please sign in to comment.