From 0b7d66281b01136e90233c79921f3329c4440239 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 14 Feb 2024 18:57:08 -0800 Subject: [PATCH] adjustments --- src/screens/Onboarding/StepProfile/SelectImageButton.tsx | 7 ------- src/screens/Onboarding/StepProfile/index.tsx | 6 +++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/screens/Onboarding/StepProfile/SelectImageButton.tsx b/src/screens/Onboarding/StepProfile/SelectImageButton.tsx index f546dfa957..6a8ff58e5f 100644 --- a/src/screens/Onboarding/StepProfile/SelectImageButton.tsx +++ b/src/screens/Onboarding/StepProfile/SelectImageButton.tsx @@ -82,11 +82,4 @@ const styles = StyleSheet.create({ width: 80, marginHorizontal: 5, }, - flatListOuter: { - height: 100, - }, - flatListContainer: { - paddingLeft: 40, - paddingRight: 40, - }, }) diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx index 8acf07432c..3f3e0d87f6 100644 --- a/src/screens/Onboarding/StepProfile/index.tsx +++ b/src/screens/Onboarding/StepProfile/index.tsx @@ -334,9 +334,13 @@ function Items({type}: {type: 'emojis' | 'colors'}) { data={type === 'colors' ? colors : emojiNames} renderItem={type === 'colors' ? colorRenderItem : emojiRenderItem} ref={ref} - {...commonFlatListProps} onLayout={onLayout} onContentSizeChange={onContentSizeChanged} + style={[isTabletOrDesktop && {marginHorizontal: 10}]} + contentContainerStyle={ + !isTabletOrDesktop ? styles.flatListContainer : undefined + } + {...commonFlatListProps} /> {isTabletOrDesktop && (