Skip to content

Commit

Permalink
fix onboarding purpose modal height for mobile web version
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Mar 22, 2024
1 parent cf99b3b commit 1ae89c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function BaseOnboardingPurpose({shouldUseNativeStyles}: BaseOnboardingPurposePro
const {translate} = useLocalize();
const {shouldUseNarrowLayout} = useOnboardingLayout();
const [selectedPurpose, setSelectedPurpose] = useState<SelectedPurposeType>(undefined);
const {isSmallScreenWidth} = useWindowDimensions();
const {isSmallScreenWidth, windowHeight} = useWindowDimensions();
const theme = useTheme();

const paddingHorizontal = shouldUseNarrowLayout ? styles.ph8 : styles.ph5;
Expand Down Expand Up @@ -110,7 +110,7 @@ function BaseOnboardingPurpose({shouldUseNativeStyles}: BaseOnboardingPurposePro
return (
<SafeAreaConsumer>
{({safeAreaPaddingBottomStyle}) => (
<View style={[styles.h100, styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8, safeAreaPaddingBottomStyle]}>
<View style={[{maxHeight: windowHeight}, styles.h100, styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8, safeAreaPaddingBottomStyle]}>
<View style={shouldUseNarrowLayout && styles.mh3}>
<HeaderWithBackButton
shouldShowBackButton
Expand Down

0 comments on commit 1ae89c6

Please sign in to comment.