Skip to content

Commit

Permalink
History layout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrypisanko committed Dec 25, 2017
1 parent 4159818 commit 9de8b22
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/app.bundled.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@
table-layout: fixed;
}
.sonm-tx-list__col-from {
width: 200px;
width: 300px;
vertical-align: bottom;
}
.sonm-tx-list__col-from-ct {
display: grid;
Expand All @@ -486,14 +487,16 @@
}
.sonm-tx-list__col-time {
width: 85px;
vertical-align: bottom;
}
.sonm-tx-list__col-to {
width: 200px;
width: 300px;
vertical-align: bottom;
}
.sonm-tx-list__col-to-ct {
display: flex;
justify-content: center;
vertical-align: middle;
vertical-align: center;
}
.sonm-tx-list__col-to-hash {
margin: 0 0 0 5px;
Expand All @@ -503,6 +506,7 @@
}
.sonm-tx-list__col-status {
width: 70px;
vertical-align: bottom;
}
.sonm-tx-list__col-status--success {
color: #7BAF84;
Expand All @@ -515,6 +519,16 @@
}
.sonm-tx-list__col-amount {
width: 150px;
vertical-align: bottom;
}
.sonm-tx-list__col-amount-value {
margin-top: 5px;
}
.sonm-tx-list__col-amount .sonm-balance {
display: table;
}
.sonm-tx-list__col-hash {
vertical-align: bottom;
}
.sonm-login {
background-color: #0b1c26;
Expand Down
23 changes: 20 additions & 3 deletions front/src/app/components/layouts/history/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
&__col {

&-from {
width: 200px;
width: 300px;
vertical-align: bottom;

&-ct {
display: grid;
Expand Down Expand Up @@ -80,15 +81,17 @@

&-time {
width: 85px;
vertical-align: bottom;
}

&-to {
width: 200px;
width: 300px;
vertical-align: bottom;

&-ct {
display: flex;
justify-content: center;
vertical-align: middle;
vertical-align: center;
}

&-hash {
Expand All @@ -102,6 +105,7 @@

&-status {
width: 70px;
vertical-align: bottom;

&--success {
color: @color-green;
Expand All @@ -118,6 +122,19 @@

&-amount {
width: 150px;
vertical-align: bottom;

&-value {
margin-top: 5px;
}

.sonm-balance {
display: table;
}
}

&-hash {
vertical-align: bottom;
}
}
}
3 changes: 1 addition & 2 deletions front/src/app/components/layouts/history/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class History extends React.Component<IProps, any> {
const currency = this.props.mainStore && this.props.mainStore.currencyMap.get(addr);
const symbol = currency
? currency.symbol
: '';
: 'None';

const result = [
<Balance
Expand All @@ -98,7 +98,6 @@ export class History extends React.Component<IProps, any> {
];

if (record.fee) {
result.push(<br key="b"/>);
result.push(
<Balance
key="f"
Expand Down

0 comments on commit 9de8b22

Please sign in to comment.