Various unlock / send style fixes (#331)

* Fix table spacing.

* Fix modal button wrapping

* Fix hanging send transaction button.

* Space
This commit is contained in:
William O'Beirne 2017-10-30 14:29:27 -07:00 committed by Daniel Ternyak
parent 68e5972a03
commit ad084745c7
4 changed files with 115 additions and 82 deletions

View File

@ -23,6 +23,7 @@
&-table { &-table {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-bottom: 10px;
&-token { &-token {
width: 82px; width: 82px;
@ -32,6 +33,10 @@
font-size: 13px; font-size: 13px;
text-align: left; text-align: left;
font-family: $font-family-monospace; font-family: $font-family-monospace;
input {
margin-right: 6px;
}
} }
&-more { &-more {

View File

@ -1,8 +1,15 @@
@import "common/sass/variables"; @import "common/sass/variables";
$summary-height: 54px; $summary-height: 54px;
$button-break: 'max-width: 620px';
.ConfModal { .ConfModal {
min-width: 580px;
@media (#{$button-break}) {
min-width: 0;
}
&-summary { &-summary {
display: flex; display: flex;
margin-bottom: 30px; margin-bottom: 30px;
@ -51,3 +58,19 @@ $summary-height: 54px;
} }
} }
// Modal overrides for extra long buttons
@media (#{$button-break}) {
.ConfModalWrap {
.Modal-footer-btn {
display: block;
float: none;
width: 100%;
margin: 0 0 5px;
&:last-child {
margin: 0;
}
}
}
}

View File

@ -101,6 +101,7 @@ class ConfirmationModal extends React.Component<Props, State> {
broadCastTxStatus && broadCastTxStatus.isBroadcasting; broadCastTxStatus && broadCastTxStatus.isBroadcasting;
return ( return (
<div className="ConfModalWrap">
<Modal <Modal
title="Confirm Your Transaction" title="Confirm Your Transaction"
buttons={buttons} buttons={buttons}
@ -149,7 +150,8 @@ class ConfirmationModal extends React.Component<Props, State> {
with a gas price of <strong>{gasPrice} gwei</strong> with a gas price of <strong>{gasPrice} gwei</strong>
</li> </li>
<li className="ConfModal-details-detail"> <li className="ConfModal-details-detail">
You are interacting with the <strong>{node.network}</strong>{' '} You are interacting with the{' '}
<strong>{node.network}</strong>{' '}
network provided by <strong>{node.service}</strong> network provided by <strong>{node.service}</strong>
</li> </li>
{!token && ( {!token && (
@ -179,6 +181,7 @@ class ConfirmationModal extends React.Component<Props, State> {
</div> </div>
} }
</Modal> </Modal>
</div>
); );
} }

View File

@ -382,15 +382,17 @@ export class SendTransaction extends React.Component<Props, State> {
</div> </div>
{!offline && ( {!offline && (
<div className="form-group"> <div className="row form-group">
<div className="col-xs-12">
<button <button
className="btn btn-primary btn-block col-sm-11" className="btn btn-primary btn-block"
disabled={!this.state.transaction} disabled={!this.state.transaction}
onClick={this.openTxModal} onClick={this.openTxModal}
> >
{translate('SEND_trans')} {translate('SEND_trans')}
</button> </button>
</div> </div>
</div>
)} )}
</div> </div>
)} )}