diff --git a/app/src/components/transaction/transaction.html b/app/src/components/transaction/transaction.html index 9139ab4..5b68b21 100644 --- a/app/src/components/transaction/transaction.html +++ b/app/src/components/transaction/transaction.html @@ -1,7 +1,7 @@ - {{ tx.txid }} + {{ tx.txid }}
@@ -33,17 +33,22 @@ -
- > -
+
- {{ getAddress(vout) }} -
- {{ vout.value + ' BTC' }} (S)(U) +
+

{{ getAddress(vout) }}

+
+

Type {{vout.scriptPubKey.type}}

+

scriptPubKey
{{vout.scriptPubKey.asm}}

+
+ +
+ {{ vout.value + ' BTC' }} (S)(U) +
@@ -51,7 +56,7 @@ - Fee {{ tx.fees + 'BTC' }} + Fee {{ tx.fees + ' BTC' }} {{ tx.confirmations }} Confirmations diff --git a/app/src/components/transaction/transaction.scss b/app/src/components/transaction/transaction.scss index 6fb401f..af4423d 100644 --- a/app/src/components/transaction/transaction.scss +++ b/app/src/components/transaction/transaction.scss @@ -1,3 +1,18 @@ transaction { + ion-grid { + background-color: #F4F4F4; + border: 1px solid #eee; + border-radius: 2px; + ion-row { + border: 1px solid #eee; + } + } + + .ellipsis { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } diff --git a/app/src/components/transaction/transaction.ts b/app/src/components/transaction/transaction.ts index d8f2ee7..074ee97 100644 --- a/app/src/components/transaction/transaction.ts +++ b/app/src/components/transaction/transaction.ts @@ -14,6 +14,7 @@ import { NavController } from 'ionic-angular'; }) export class TransactionComponent { + public expanded: boolean = false; @Input() public tx: any = {}; constructor(private navCtrl: NavController) { @@ -38,4 +39,8 @@ export class TransactionComponent { 'addrStr': addrStr }); } + + public toggleExpanded(): void { + this.expanded = !this.expanded; + } }