Skip to content

Commit

Permalink
responsive txdetails
Browse files Browse the repository at this point in the history
  • Loading branch information
bgptr committed Oct 18, 2019
1 parent b80c4bc commit 3f8c8bf
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 35 deletions.
2 changes: 1 addition & 1 deletion app/components/views/SettingsPage/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const SettingsPage = ({
walletReady,
isTicketAutoBuyerEnabled
}) => (
<StandalonePage header={<SettingsPageHeader {...{ onCloseWallet, walletName, isTicketAutoBuyerEnabled }}/>} >
<StandalonePage header={<SettingsPageHeader {...{ onCloseWallet, walletName, isTicketAutoBuyerEnabled }} />} className="settings-standalone-page">
<div className="settings-wrapper">
<div className="settings-columns">
<GeneralSettings {...{ tempSettings, networks, currencies, locales, walletReady,
Expand Down
4 changes: 2 additions & 2 deletions app/components/views/TxDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const TxDetails = ({
<div className="txdetails-value"><Balance amount={txFee} /></div>
</div> }
</div>
{!isConfirmed && <KeyBlueButton className="rebroadcast-button" onClick={publishUnminedTransactions}><T id="txDetails.rebroadcastTransactions" m="Rebroadcast Transaction"/></KeyBlueButton> }
{!isConfirmed && <div className="rebroadcast-button-container"><KeyBlueButton className="rebroadcast-button" onClick={publishUnminedTransactions}><T id="txDetails.rebroadcastTransactions" m="Rebroadcast Transaction" /></KeyBlueButton></div> }
<div className="txdetails-io">
<div className="txdetails-title"><T id="txDetails.io.title" m="I/O Details" /></div>
<div className="txdetails-overview">
Expand Down Expand Up @@ -253,7 +253,7 @@ const TxDetails = ({
</div>
</>
}
<div className="txdetails-top-row">
<div className="txdetails-top-row row-transaction">
<div className="txdetails-name"><T id="txDetails.rawTransactionLabel" m="Raw Transaction" /></div>
<div className="txdetails-value"><div className="txdetails-value-rawtx">{rawTx}</div><CopyToClipboard textToCopy={rawTx} className="receive-content-nest-copy-to-clipboard-icon" /></div>
</div>
Expand Down
28 changes: 24 additions & 4 deletions app/style/Layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,14 @@
}

.standalone-page-header-container {
width: 740px;
width: 750px;
position: relative;
}

.standalone-page.settings-standalone-page .standalone-page-header-container {
width: 740px;
}

.tabbed-page-body {
overflow: hidden;
position: absolute;
Expand Down Expand Up @@ -350,6 +354,10 @@
}

@media screen and (max-width: 768px) {
.standalone-page-header-container {
width: 355px;
}

.page-body {
flex-direction: column-reverse;
}
Expand Down Expand Up @@ -386,14 +394,26 @@
padding-top: 30px;
}

.standalone-page-header .title-header-button {
.standalone-page.settings-standalone-page .title-header-button {
display: none;
}


.standalone-page.txdetails-standalone-page .description-header{
display: block;
margin-left: 30px;
.tx-details-subtitle {
margin-top: 10px;
}
}

.standalone-page-body {
padding: 30px 10px;
top: 113px;
bottom: 60px;
}


.standalone-page-header > .standalone-page-header-container > .title-header-button {
position: absolute;
right: 20px;
}
}
30 changes: 29 additions & 1 deletion app/style/MiscComponents.less
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,9 @@
}
}

.rebroadcast-button-container {
width: 815px;
}
.rebroadcast-button {
background-image: @rebroadcastTransaction;
background-position: 20px 12px;
Expand All @@ -759,5 +762,30 @@
padding-left: 48px;
float: right;
margin-top: -22px;
margin-right: 68px;
}

@media screen and (max-width: 1179px) {
.rebroadcast-button-container {
width: 770px;
}
}

@media screen and (max-width: 1106px) {
.rebroadcast-button-container {
width: 670px;
}
}

@media screen and (max-width: 768px) {
.rebroadcast-button-container {
width: 375px;
text-align: center;
display: block;
margin-top: -22px;
.rebroadcast-button {
float: none;
padding: 12px 30px 14px 48px;
margin-top: 0;
}
}
}
3 changes: 1 addition & 2 deletions app/style/ReceivePage.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@

.receive-content-nest-copy-to-clipboard-icon {
float: left;
margin-left: 20px;
margin-top: 10px;
margin-left: 10px;
}

@media screen and (max-width: 409px) {
Expand Down
36 changes: 19 additions & 17 deletions app/style/Settings.less
Original file line number Diff line number Diff line change
Expand Up @@ -311,24 +311,10 @@
.settings-security .settings-column-title {
text-align: left;
}
}

@media screen and (max-width: 768px) {
.settings-wrapper {
margin-top:0;
width: 315px;
padding: 20px ;
flex-direction: column;

.settings-columns:nth-of-type(2){
width: 300px;
}
}

.settings-save-button-wrapper {
width:355px;
text-align: center;
}
.close-modal-button {
display: none;
}
}

.close-modal-button {
Expand All @@ -349,4 +335,20 @@
text-align: right;
}

@media screen and (max-width: 768px) {
.settings-wrapper {
margin-top:0;
width: 315px;
padding: 20px ;
flex-direction: column;

.settings-columns:nth-of-type(2){
width: 300px;
}
}

.settings-save-button-wrapper {
width:355px;
text-align: center;
}
}
2 changes: 2 additions & 0 deletions app/style/Themes.less
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
--onboard-toolbar-shadow: rgba(9,20,64,0.13);
--onboard-toolbar-background: #152042;
--background-copy-color: #e9f8ff;
--txdetails-top-bg: #1F325F;

/* icons */
--menu-settings-default: url('@{icon-root}/settingsDefaultDark.svg');
Expand Down Expand Up @@ -311,6 +312,7 @@
--onboard-toolbar-shadow: rgba(9,20,64,0.13);
--onboard-toolbar-background: #fff;
--background-copy-color: #e9f8ff;
--txdetails-top-bg: #f9fafa;

/* icons */
--menu-settings-default: url('@{icon-root}/settings-default.png');
Expand Down
101 changes: 93 additions & 8 deletions app/style/TxDetails.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.txdetails-standalone-page .standalone-page-body {
padding: 0;
top: 162px;
top: 157px;
}

.txdetails-indicator-mixin {
Expand Down Expand Up @@ -48,7 +48,7 @@
padding-top: 25px;
padding-bottom: 33px;
font-size: 13px;
background-color: var(--background-container);
background-color: var(--txdetails-top-bg);
}

.txdetails-io {
Expand All @@ -63,23 +63,22 @@

.txdetails-name {
color: var(--tx-detail-text);
margin-right: 22px;
min-width: 93px;
margin-right: 11px;
min-width: 90px;
text-align: right;
font-size: 13px;
line-height: 17px;
}

.txdetails-value {
width: 70%;
word-wrap: break-word;
display: flex;
}

.txdetails-value-rawtx {
font-size: 13px;
line-height: 15px;
width: 90%;
width: 540px;
height: 233px;
overflow-y: auto;
background-color: var(--background-back-color);
Expand All @@ -91,6 +90,7 @@
margin-bottom: 3em;
display: flex;
justify-content: space-between;
width: 659px;
}

.txdetails-overview-title-mixin {
Expand Down Expand Up @@ -132,7 +132,6 @@

.txdetails-outputs {
width: 220px;
margin-right: 80px;
}

.tx-details-area-mixin {
Expand Down Expand Up @@ -202,7 +201,6 @@
.blue-value-highlight-mixin;

max-height: 22px;
margin-top: 3px;
}

.tx-details-subtitle-account {
Expand Down Expand Up @@ -246,3 +244,90 @@
.txdetails-last {
border-bottom: 0px none transparent;
}

@media screen and (max-width: 1106px) {
.txdetails-overview {
width: 633px;
}
.txdetails-io,
.txdetails-details,
.txdetails-top {
padding-left: 36px;
}
.txdetails-value-rawtx {
width: 511px;
}
}

@media screen and (max-width: 1106px) {
.txdetails-overview {
width: 633px;
}
.txdetails-io,
.txdetails-details,
.txdetails-top {
padding-left: 36px;
}
.txdetails-value-rawtx {
width: 511px;
}
}
@media screen and (max-width: 768px) {
.txdetails-standalone-page .standalone-page-body {
top: 113px;
}

.txdetails-overview {
flex-direction: column;
padding-left: 42px;
}

.txdetails-details,
.txdetails-top {
padding-left: 30px;
}

.txdetails-input-arrow {
transform: rotate(90deg);
margin: 20px 0 25px 88px;
}

.txdetails-top .txdetails-value > a {
text-overflow: ellipsis;
width: 220px;
white-space: nowrap;
overflow: hidden;
}

.txdetails-details .txdetails-top-row {
width: 335px;

.txdetails-value > a {
word-wrap: break-word;
display: inline-block;
width: 223px;
}

&.row-transaction {
flex-direction: column;
.txdetails-name {
text-align: left;
}
.txdetails-value{
margin-top: 10px;
margin-left: -20px;
width: 354px;
position: relative;
.txdetails-value-rawtx {
width: 335px;
}
.clipboard-box.receive-content-nest-copy-to-clipboard-icon {
position: absolute;
top: -28px;
right: 5px;
margin: 0;
}
}
}
}
}

0 comments on commit 3f8c8bf

Please sign in to comment.