diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-31 03:57:10 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-31 03:57:10 +0800 |
commit | b6592ba95f39431d585e8ad19d66364d48c8add3 (patch) | |
tree | c6d44b62ca1903dee2937f271499e839e7bebb39 /ui/app/components | |
parent | acfcdf52b4e927b9459194a54685943d48bdc48a (diff) | |
parent | fa4423bab2886017996955f809b6e3102cbf1781 (diff) | |
download | tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar.gz tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar.bz2 tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar.lz tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar.xz tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.tar.zst tangerine-wallet-browser-b6592ba95f39431d585e8ad19d66364d48c8add3.zip |
Merge branch 'develop' of github.com:MetaMask/metamask-extension into qr-code-scan
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/confirm-page-container/confirm-detail-row/index.scss | 7 | ||||
-rw-r--r-- | ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/ui/app/components/confirm-page-container/confirm-detail-row/index.scss b/ui/app/components/confirm-page-container/confirm-detail-row/index.scss index 84d0d56ed..dd6f87c17 100644 --- a/ui/app/components/confirm-page-container/confirm-detail-row/index.scss +++ b/ui/app/components/confirm-page-container/confirm-detail-row/index.scss @@ -15,14 +15,21 @@ &__details { flex: 1; text-align: end; + min-width: 0; } &__fiat { font-size: 1.5rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } &__eth { color: $oslo-gray; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } &__header-text { diff --git a/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js b/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js index 365ae216e..acaed383a 100644 --- a/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js +++ b/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js @@ -5,6 +5,7 @@ import { formatCurrency, convertTokenToFiat, addFiat, + roundExponential, } from '../../../helpers/confirm-transaction/util' export default class ConfirmTokenTransactionBase extends Component { @@ -42,7 +43,8 @@ export default class ConfirmTokenTransactionBase extends Component { return this.context.t('noConversionRateAvailable') } else { const fiatTransactionAmount = this.getFiatTransactionAmount() - return formatCurrency(fiatTransactionAmount, currentCurrency) + const roundedFiatTransactionAmount = roundExponential(fiatTransactionAmount) + return formatCurrency(roundedFiatTransactionAmount, currentCurrency) } } @@ -54,7 +56,8 @@ export default class ConfirmTokenTransactionBase extends Component { } else { const fiatTransactionAmount = this.getFiatTransactionAmount() const fiatTotal = addFiat(fiatTransactionAmount, fiatTransactionTotal) - return formatCurrency(fiatTotal, currentCurrency) + const roundedFiatTotal = roundExponential(fiatTotal) + return formatCurrency(roundedFiatTotal, currentCurrency) } } |