mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix grid-template-columns (#7366)
* Fix grid-template-columns * Add fullscreen check
This commit is contained in:
parent
728115171e
commit
78224601b9
@ -13,7 +13,7 @@
|
||||
width: 100%;
|
||||
padding: 16px 20px;
|
||||
display: grid;
|
||||
grid-template-columns: 45px 1fr 1fr 1fr;
|
||||
grid-template-columns: 45px 1fr 1fr 1fr 1fr;
|
||||
grid-template-areas:
|
||||
"identicon action status estimated-time primary-amount"
|
||||
"identicon nonce status estimated-time secondary-amount";
|
||||
|
@ -12,6 +12,8 @@ import { CONFIRM_TRANSACTION_ROUTE } from '../../../helpers/constants/routes'
|
||||
import { UNAPPROVED_STATUS, TOKEN_METHOD_TRANSFER } from '../../../helpers/constants/transactions'
|
||||
import { PRIMARY, SECONDARY } from '../../../helpers/constants/common'
|
||||
import { getStatusKey } from '../../../helpers/utils/transactions.util'
|
||||
import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../../app/scripts/lib/enums'
|
||||
import { getEnvironmentType } from '../../../../../app/scripts/lib/util'
|
||||
|
||||
export default class TransactionListItem extends PureComponent {
|
||||
static propTypes = {
|
||||
@ -196,6 +198,11 @@ export default class TransactionListItem extends PureComponent {
|
||||
? tokenData.params && tokenData.params[0] && tokenData.params[0].value || txParams.to
|
||||
: txParams.to
|
||||
|
||||
const isFullScreen = getEnvironmentType(window.location.href) === ENVIRONMENT_TYPE_FULLSCREEN
|
||||
const showEstimatedTime = transactionTimeFeatureActive &&
|
||||
(transaction.id === firstPendingTransactionId) &&
|
||||
isFullScreen
|
||||
|
||||
return (
|
||||
<div className="transaction-list-item">
|
||||
<div
|
||||
@ -228,7 +235,7 @@ export default class TransactionListItem extends PureComponent {
|
||||
: primaryTransaction.err && primaryTransaction.err.message
|
||||
)}
|
||||
/>
|
||||
{ transactionTimeFeatureActive && (transaction.id === firstPendingTransactionId)
|
||||
{ showEstimatedTime
|
||||
? <TransactionTimeRemaining
|
||||
className="transaction-list-item__estimated-time"
|
||||
transaction={ primaryTransaction }
|
||||
|
Loading…
Reference in New Issue
Block a user