Browse Source
style(sync): vertically centre sync page title
If we are syncing after having already completed the initial sync we do
not show the funding address QR code. In this case, adjust the title
padding so that the page title is better centred.
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
2 changed files with
10 additions and
8 deletions
app/components/Onboarding/Syncing/Syncing.js
app/components/Onboarding/Syncing/Syncing.scss
@ -96,7 +96,7 @@ class Syncing extends Component {
< / h e a d e r >
< / h e a d e r >
{ hasSynced === true && (
{ hasSynced === true && (
< div >
< div className = { styles . hasNotSynced } >
< div className = { styles . title } >
< div className = { styles . title } >
< h1 >
< h1 >
< FormattedMessage { ... messages . sync_title } / >
< FormattedMessage { ... messages . sync_title } / >
@ -105,14 +105,11 @@ class Syncing extends Component {
< FormattedMessage { ... messages . sync_description } / >
< FormattedMessage { ... messages . sync_description } / >
< / p >
< / p >
< / d i v >
< / d i v >
< div className = { styles . loading } >
< div className = { styles . spinner } / >
< / d i v >
< / d i v >
< / d i v >
) }
) }
{ hasSynced === false && (
{ hasSynced === false && (
< div >
< div className = { styles . hasSynced } >
< div className = { styles . title } >
< div className = { styles . title } >
< h1 >
< h1 >
< FormattedMessage { ... messages . fund_title } / >
< FormattedMessage { ... messages . fund_title } / >
@ -24,9 +24,6 @@
}
}
. title {
. title {
margin : 30 px ;
background : var ( -- darkestBackground ) ;
h1 {
h1 {
font-size : 20 px ;
font-size : 20 px ;
margin-bottom : 20 px ;
margin-bottom : 20 px ;
@ -37,6 +34,14 @@
}
}
}
}
. hasNotSynced . title {
margin : 95 px ;
}
. hasSynced . title {
margin : 30 px ;
}
. address {
. address {
background : var ( -- darkestBackground ) ;
background : var ( -- darkestBackground ) ;