Skip to content

Commit

Permalink
Apply modal dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 1, 2024
1 parent bb2e9b8 commit b43027a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/OnboardingWelcomeVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ function OnboardingWelcomeVideo() {
type={shouldUseNarrowLayout ? CONST.MODAL.MODAL_TYPE.CENTERED_SMALL : CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED}
onClose={closeModal}
>
<View onLayout={storeContainerDimensions}>
<View
style={styles.WelcomeVideoNavigatorInnerView(shouldUseNarrowLayout)}
onLayout={storeContainerDimensions}
>
<View style={{padding: MODAL_PADDING}}>{getWelcomeVideo()}</View>
<View style={[shouldUseNarrowLayout ? [styles.mt5, styles.mh8] : [styles.mt3, styles.mh5]]}>
<View style={[shouldUseNarrowLayout ? [styles.gap1, styles.mb8] : [styles.gap2, styles.mb10]]}>
Expand Down
4 changes: 0 additions & 4 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,10 +1541,6 @@ const styles = (theme: ThemeColors) =>
width: shouldUseNarrowLayout ? 500 : '100%',
height: 500,
maxHeight: '100%',
borderRadius: shouldUseNarrowLayout ? 16 : 0,
overflow: 'hidden',
flex: 1,
justifyContent: 'center',
} satisfies ViewStyle),

onlyEmojisText: {
Expand Down

0 comments on commit b43027a

Please sign in to comment.