mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Increase clickable area and padding of Retry Transaction bar
This commit is contained in:
parent
db4469794e
commit
4737ea49c7
@ -31,8 +31,8 @@ async function runTxListItemsTest (assert, done) {
|
||||
assert.equal($(unapprovedTx).hasClass('tx-list-pending-item-container'), true, 'unapprovedTx has the correct class')
|
||||
|
||||
const retryTx = txListItems[1]
|
||||
const retryTxLink = await findAsync($(retryTx), '.tx-list-item-retry-link')
|
||||
assert.equal(retryTxLink[0].textContent, 'Increase the gas price on your transaction', 'retryTx has expected link')
|
||||
const retryTxLink = await findAsync($(retryTx), '.tx-list-item-retry-container span')
|
||||
assert.equal(retryTxLink[0].textContent, 'Taking too long? Increase the gas price on your transaction', 'retryTx has expected link')
|
||||
|
||||
const approvedTx = txListItems[2]
|
||||
const approvedTxRenderedStatus = await findAsync($(approvedTx), '.tx-list-status')
|
||||
|
@ -307,11 +307,7 @@ TxListItem.prototype.render = function () {
|
||||
]),
|
||||
]),
|
||||
|
||||
this.showRetryButton() && h('div.tx-list-item-retry-container', [
|
||||
|
||||
h('span.tx-list-item-retry-copy', 'Taking too long?'),
|
||||
|
||||
h('span.tx-list-item-retry-link', {
|
||||
this.showRetryButton() && h('.tx-list-item-retry-container', {
|
||||
onClick: (event) => {
|
||||
event.stopPropagation()
|
||||
if (isTokenTx) {
|
||||
@ -319,8 +315,8 @@ TxListItem.prototype.render = function () {
|
||||
}
|
||||
this.resubmit()
|
||||
},
|
||||
}, 'Increase the gas price on your transaction'),
|
||||
|
||||
}, [
|
||||
h('span', 'Taking too long? Increase the gas price on your transaction'),
|
||||
]),
|
||||
|
||||
]), // holding on icon from design
|
||||
|
@ -129,12 +129,14 @@
|
||||
.tx-list-item-retry-container {
|
||||
background: #d1edff;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8em;
|
||||
border-radius: 12px;
|
||||
font-size: .75rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-left: 44px;
|
||||
width: calc(100% - 44px);
|
||||
padding: 4px;
|
||||
cursor: pointer;
|
||||
|
||||
@media screen and (min-width: 576px) and (max-width: 679px) {
|
||||
flex-flow: column;
|
||||
@ -151,10 +153,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.tx-list-item-retry-copy {
|
||||
font-family: Roboto;
|
||||
}
|
||||
|
||||
.tx-list-item-retry-link {
|
||||
text-decoration: underline;
|
||||
margin-left: 6px;
|
||||
|
Loading…
Reference in New Issue
Block a user