Skip to content

Commit

Permalink
Android paddings (#1412)
Browse files Browse the repository at this point in the history
* fix savings rows alignment

* add margin bottom to unique token image
  • Loading branch information
brunobar79 authored Dec 2, 2020
1 parent 4dce1fb commit e4d15dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const paddingHorizontal = 19;
const Container = styled(Centered)`
${padding(0, paddingHorizontal)};
height: ${({ height }) => height};
${android ? `margin-bottom: 10;` : ``}
`;

const ImageWrapper = styled(Centered)`
Expand Down
4 changes: 2 additions & 2 deletions src/components/savings/AndroidAnimatedNumbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function formatter(symbol, val) {
: `${formatSavingsAmount(val)} ${symbol}`;
}

export default function AndroidText({ animationConfig }) {
export default function AndroidText({ style, animationConfig }) {
const isStable = isSymbolStablecoin(animationConfig.symbol);
const ref = useRef();
useEffect(() => {
Expand All @@ -45,7 +45,7 @@ export default function AndroidText({ animationConfig }) {
}, [animationConfig, isStable]);

return (
<Row>
<Row style={style}>
<TextChunk
defaultValue={formatter(
animationConfig.symbol,
Expand Down
4 changes: 2 additions & 2 deletions src/components/savings/SavingsListRowAnimatedNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const sx = StyleSheet.create({
height: 30,
},
animatedNumberAndroid: {
paddingLeft: 35,
left: 35,
position: 'absolute',
top: 12,
top: 4,
},
text: {
color: colors.dark,
Expand Down

0 comments on commit e4d15dc

Please sign in to comment.