Skip to content

Commit

Permalink
fix: Update right content gap activation logic (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Sep 8, 2023
1 parent 6f05aa7 commit e73af60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app-layout/visual-refresh/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ export const AppLayoutInternalsProvider = React.forwardRef(
const drawersTriggerCount =
drawers.length + (splitPanelDisplayed && splitPanelPosition === 'side' ? 1 : 0) + (!toolsHide ? 1 : 0);
const hasOpenDrawer =
activeDrawerId !== undefined || (splitPanelDisplayed && splitPanelPosition === 'side' && isSplitPanelOpen);
activeDrawerId !== undefined ||
(!toolsHide && isToolsOpen) ||
(splitPanelDisplayed && splitPanelPosition === 'side' && isSplitPanelOpen);
const hasDrawerViewportOverlay =
isMobile && (!!activeDrawerId || (!navigationHide && isNavigationOpen) || (!toolsHide && isToolsOpen));

Expand Down

0 comments on commit e73af60

Please sign in to comment.