From 5d374bfd25c724139db2535c50647813f435dee6 Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Tue, 6 May 2025 17:31:33 +0200 Subject: [PATCH] Fix issue: Safari - Left navigation bar disappears when onboarding modal/RHP is opened --- .../AppNavigator/useSplitNavigatorScreenOptions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/useSplitNavigatorScreenOptions.ts b/src/libs/Navigation/AppNavigator/useSplitNavigatorScreenOptions.ts index 48237ef07c09..38d97115b70d 100644 --- a/src/libs/Navigation/AppNavigator/useSplitNavigatorScreenOptions.ts +++ b/src/libs/Navigation/AppNavigator/useSplitNavigatorScreenOptions.ts @@ -36,10 +36,11 @@ const useSplitNavigatorScreenOptions = () => { cardStyleInterpolator: (props: StackCardInterpolationProps) => modalCardStyleInterpolator({props}), cardStyle: { ...StyleUtils.getNavigationModalCardStyle(), - width: shouldUseNarrowLayout ? '100%' : variables.sideBarWithLHBWidth, + width: shouldUseNarrowLayout ? '100%' : variables.sideBarWithLHBWidth + variables.navigationTabBarSize, // We need to shift the sidebar to not be covered by the StackNavigator so it can be clickable. - marginLeft: shouldUseNarrowLayout ? 0 : -variables.sideBarWithLHBWidth, + marginLeft: shouldUseNarrowLayout ? 0 : -(variables.sideBarWithLHBWidth + variables.navigationTabBarSize), + paddingLeft: variables.navigationTabBarSize, ...(shouldUseNarrowLayout ? {} : themeStyles.borderRight), }, },