Skip to content

Commit

Permalink
fix: mobile sidebar should always be enabled (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Sep 10, 2024
1 parent ff82d37 commit 8d69ce0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/app/src/atoms/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ export const useDismissSidebar = (): (() => void) => {
};

export const FORCE_ENABLE_SIDEBAR_ATOM = atom((get) => {
const isMobileSidebarEnabled = get(MOBILE_SIDEBAR_ENABLED_ATOM);

if (isMobileSidebarEnabled) {
return true;
}

const layout = get(DOCS_LAYOUT_ATOM);

// sidebar is always enabled if the header is disabled
Expand Down

0 comments on commit 8d69ce0

Please sign in to comment.