From aa7caa70c7b2322ed05d027d85fa1a13b60af8d6 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 14 Jun 2024 12:22:23 +0800 Subject: [PATCH] only show the offline indicator in wide screen in non narrow layout --- src/components/ScreenWrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ScreenWrapper.tsx b/src/components/ScreenWrapper.tsx index c597b8c741db..874e61a37713 100644 --- a/src/components/ScreenWrapper.tsx +++ b/src/components/ScreenWrapper.tsx @@ -139,7 +139,7 @@ function ScreenWrapper( const navigationFallback = useNavigation>(); const navigation = navigationProp ?? navigationFallback; const {windowHeight} = useWindowDimensions(shouldUseCachedViewportHeight); - const {isSmallScreenWidth} = useResponsiveLayout(); + const {isSmallScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout(); const {initialHeight} = useInitialDimensions(); const styles = useThemeStyles(); const keyboardState = useKeyboardState(); @@ -279,7 +279,7 @@ function ScreenWrapper( : children } {isSmallScreenWidth && shouldShowOfflineIndicator && } - {!isSmallScreenWidth && shouldShowOfflineIndicatorInWideScreen && ( + {!shouldUseNarrowLayout && shouldShowOfflineIndicatorInWideScreen && (