Skip to content

Commit 5ce0c42

Browse files
chore: Update Modal scrollContent padding based on window width
1 parent 889468d commit 5ce0c42

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
View,
99
ViewStyle,
1010
StyleSheet,
11+
Dimensions,
1112
} from 'react-native'
1213

1314
import { KeyboardAwareScrollView } from './KeyboardAwareScrollView'
@@ -68,6 +69,6 @@ const styles = StyleSheet.create({
6869
},
6970
scrollContent: {
7071
justifyContent: 'center',
71-
paddingHorizontal: 32,
72+
paddingHorizontal: Dimensions.get('window').width < 450 ? 16 : 32,
7273
},
7374
})

0 commit comments

Comments
 (0)