aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-13 06:19:33 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-13 06:19:33 +0800
commit5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010 (patch)
treeb1b3cb8ab066f540259a4bf9ed704b278ea06c7e /ui
parent4b528405eac7cea54c743307e6f577abd6ce9507 (diff)
downloadtangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar.gz
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar.bz2
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar.lz
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar.xz
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.tar.zst
tangerine-wallet-browser-5710e648bd77aa7be6e9a4ba1d7d3fe4ea20c010.zip
remove account modal updated
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js19
-rw-r--r--ui/app/components/modals/index.scss51
2 files changed, 55 insertions, 15 deletions
diff --git a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js
index b9dc6364f..5a9f0f289 100644
--- a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js
+++ b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js
@@ -25,25 +25,24 @@ class ConfirmRemoveAccount extends Component {
renderSelectedAccount () {
const { identity } = this.props
return (
- <div className="modal-container__address">
- <div className="account_identicon">
+ <div className="modal-container__account">
+ <div className="modal-container__account__identicon">
<Identicon
address={identity.address}
diameter={32}
- style={{'marginLeft': '10px'}}
/>
</div>
- <div className="account_name">
- <span className="account_label">Name</span>
+ <div className="modal-container__account__name">
+ <span className="modal-container__account__label">Name</span>
<span className="account_value">{identity.name}</span>
</div>
- <div className="account_address">
- <span className="account_label">Public Address</span>
- <span className="account_value">{ addressSummary(identity.address) }</span>
+ <div className="modal-container__account__address">
+ <span className="modal-container__account__label">Public Address</span>
+ <span className="account_value">{ addressSummary(identity.address, 4, 4) }</span>
</div>
- <div className="account_link">
+ <div className="modal-container__account__link">
<a
- className="hw-account-list__item__link"
+ className=""
href={genAccountLink(identity.address, this.props.network)}
target={'_blank'}
title={this.context.t('etherscanView')}
diff --git a/ui/app/components/modals/index.scss b/ui/app/components/modals/index.scss
index b7f1f249d..1cefcb49c 100644
--- a/ui/app/components/modals/index.scss
+++ b/ui/app/components/modals/index.scss
@@ -19,12 +19,53 @@
text-align: center;
font-size: .875rem;
}
-
- &__address {
- text-align: center;
- font-size: 1rem;
- margin-top: 20px;
+
+ &__account {
+ border: 1px solid #b7b7b7;
+ border-radius: 4px;
+ padding: 10px;
+ display: flex;
+ margin-top: 10px;
margin-bottom: 20px;
+ width: 100%;
+
+ &__identicon {
+ margin-right: 10px;
+ }
+
+ &__name,
+ &__address {
+ margin-right: 10px;
+ font-size: 14px;
+ }
+
+ &__name {
+ width: 100px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ &__label {
+ font-size: 11px;
+ display: block;
+ color: #9b9b9b;
+ }
+
+ &__link {
+ margin-top: 16px;
+
+ img {
+ width: 15px;
+ height: 15px;
+ }
+ }
+
+ @media screen and (max-width: 575px) {
+ &__name {
+ width: 90px;
+ }
+ }
}
&__link {