Skip to content

Commit e628e75

Browse files
Added a maximum width to modals
1 parent b7a850e commit e628e75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/BaseModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const BaseModal: FC<BaseModalProps> = ({
2929
? { height: '100%', paddingBottom: spacing * 10 }
3030
: {}),
3131
backgroundColor: visible ? 'rgba(0, 0, 0, 0.5)' : undefined,
32+
alignItems: 'center',
33+
justifyContent: 'center',
34+
flexDirection: 'row',
3235
}}
3336
contentContainerStyle={{
3437
backgroundColor: backgroundColor ?? theme.colors.elevation.level4,
@@ -38,6 +41,8 @@ const BaseModal: FC<BaseModalProps> = ({
3841
borderRadius: 28,
3942
marginVertical: 8,
4043
marginHorizontal: 24,
44+
maxWidth: 450,
45+
flex: 1,
4146
}}
4247
>
4348
{children}

0 commit comments

Comments
 (0)