From 6e28878ef57e05b19e68ea826a77c63fb8eb1b2c Mon Sep 17 00:00:00 2001 From: meriadec Date: Thu, 28 Jun 2018 21:29:14 +0200 Subject: [PATCH] Fix Onboarding layout on small screens --- src/components/Onboarding/steps/Init.js | 5 ++- src/components/Onboarding/steps/NoDevice.js | 29 +++++++------ .../Onboarding/steps/SelectPIN/index.js | 41 ++++++++++--------- .../Onboarding/steps/WriteSeed/index.js | 35 ++++++++-------- 4 files changed, 60 insertions(+), 50 deletions(-) diff --git a/src/components/Onboarding/steps/Init.js b/src/components/Onboarding/steps/Init.js index 548b8391..581fa16e 100644 --- a/src/components/Onboarding/steps/Init.js +++ b/src/components/Onboarding/steps/Init.js @@ -7,6 +7,7 @@ import { colors } from 'styles/theme' import styled from 'styled-components' import { flowType } from 'reducers/onboarding' import Box from 'components/base/Box' +import GrowScroll from 'components/base/GrowScroll' import TrackPage from 'analytics/TrackPage' import IconPlus from 'icons/Plus' import IconRecover from 'icons/Recover' @@ -64,7 +65,7 @@ class Init extends PureComponent { ] return ( - + { {optionCards.map(card => )} - + ) } } diff --git a/src/components/Onboarding/steps/NoDevice.js b/src/components/Onboarding/steps/NoDevice.js index c8ec5b6d..49561151 100644 --- a/src/components/Onboarding/steps/NoDevice.js +++ b/src/components/Onboarding/steps/NoDevice.js @@ -5,6 +5,7 @@ import { shell } from 'electron' import { i } from 'helpers/staticPath' import Box from 'components/base/Box' +import GrowScroll from 'components/base/GrowScroll' import TrackPage from 'analytics/TrackPage' import IconCart from 'icons/Cart' import IconTruck from 'icons/Truck' @@ -47,20 +48,22 @@ class NoDevice extends PureComponent { ] return ( - - - - } - /> - - {t('onboarding:noDevice.title')} + + + + + } + /> + + {t('onboarding:noDevice.title')} + + + {optionCards.map(card => )} + - - {optionCards.map(card => )} - - +