Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Hide transaction ID on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Aug 21, 2017
1 parent 9724a5c commit 69d9ff7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/transactions/transactionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TransactionRow = props => (
<TooltipTime label={props.value.timestamp}></TooltipTime> :
<Spinner />}
</td>
<td className={`${props.tableStyle.rowCell} ${styles.centerText}`}>
<td className={`${props.tableStyle.rowCell} ${styles.centerText} ${styles.hiddenXs}`}>
<TooltipWrapper tooltip={`${props.value.confirmations} confirmations`}>{props.value.id}</TooltipWrapper>
</td>
<td className={`${props.tableStyle.rowCell} ${styles.centerText}`}>
Expand Down
6 changes: 6 additions & 0 deletions src/components/transactions/transactions.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@
.centerText{
text-align: center;
}

@media screen and (max-width: 48em) {
.hiddenXs {
display: none;
}
}
2 changes: 1 addition & 1 deletion src/components/transactions/transactionsHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const TransactionsHeader = ({ tableStyle }) => (
<thead>
<tr>
<th className={`${tableStyle.headCell} ${styles.centerText}`}>Time</th>
<th className={`${tableStyle.headCell} ${styles.centerText}`}>Transaction ID</th>
<th className={`${tableStyle.headCell} ${styles.centerText} ${styles.hiddenXs}`}>Transaction ID</th>
<th className={`${tableStyle.headCell} ${styles.centerText}`}>From / To</th>
<th className={`${tableStyle.headCell} ${styles.centerText}`}></th>
<th className={`${tableStyle.headCell} ${styles.centerText}`}>Amount</th>
Expand Down

0 comments on commit 69d9ff7

Please sign in to comment.