Skip to content

Commit

Permalink
Fix margin on HomeSceneUi4
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Jan 25, 2024
1 parent c2a55d8 commit dc7985b
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/components/ui4/scenes/HomeSceneUi4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,8 @@ export const HomeSceneUi4 = (props: Props) => {
{({ insetStyle, undoInsetStyle }) => (
<>
<WiredProgressBar />
<Animated.ScrollView
onScroll={handleScroll}
style={[styles.tempMargin, undoInsetStyle]}
contentContainerStyle={insetStyle}
scrollIndicatorInsets={{ right: 1 }}
>
<SectionView extendRight>
<Animated.ScrollView onScroll={handleScroll} style={undoInsetStyle} contentContainerStyle={[insetStyle]} scrollIndicatorInsets={{ right: 1 }}>
<SectionView extendRight marginRem={TEMP_PADDING_REM}>
<>
<EdgeAnim enter={{ type: 'fadeInUp', distance: 140 }}>
<BalanceCardUi4 onViewAssetsPress={handleViewAssetsPress} navigation={navigation} />
Expand Down Expand Up @@ -199,12 +194,5 @@ const getStyles = cacheStyles((theme: Theme) => ({
justifyContent: 'space-evenly',
alignContent: 'center',
alignItems: 'stretch'
},

// We plan to remove dividers that extend all the way to the right in the
// future. In the interim, setting a margin instead of a SceneWrapper padding
// lets us do that.
tempMargin: {
margin: theme.rem(TEMP_PADDING_REM)
}
}))

0 comments on commit dc7985b

Please sign in to comment.