Fix websocket wallet balances, reposition logo

This commit is contained in:
Mononaut 2024-02-16 05:55:36 +00:00
parent a7ce7121ee
commit 1f14cbfcaa
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
3 changed files with 15 additions and 2 deletions

View File

@ -1,7 +1,8 @@
<div class="frame {{ screenSize }}" [class.liquid-address]="network === 'liquid' || network === 'liquidtestnet'"> <div class="frame {{ screenSize }}" [class.liquid-address]="network === 'liquid' || network === 'liquidtestnet'">
<div class="heading"> <div class="heading">
<h3 i18n="addresses.balance">Balances</h3>
<app-svg-images name="officialMempoolSpace" style="width: 144px; height: 36px" width="500" height="126" viewBox="0 0 500 126"></app-svg-images> <app-svg-images name="officialMempoolSpace" style="width: 144px; height: 36px" width="500" height="126" viewBox="0 0 500 126"></app-svg-images>
<h3 i18n="addresses.balance">Balances</h3>
<div class="spacer"></div>
</div> </div>
<table class="table table-borderless table-striped table-fixed"> <table class="table table-borderless table-striped table-fixed">
<tr> <tr>

View File

@ -10,6 +10,16 @@
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: start; align-items: start;
& > * {
flex-basis: 0;
flex-grow: 1;
}
h3 {
text-align: center;
margin: 0 1em;
}
} }
.pagination { .pagination {
@ -19,6 +29,8 @@
} }
.table { .table {
margin-top: 0.5em;
td, th { td, th {
padding: 0.15rem 0.5rem; padding: 0.15rem 0.5rem;

View File

@ -94,7 +94,7 @@ export class AddressGroupComponent implements OnInit, OnDestroy {
- addressBalance.chain_stats.spent_txo_sum - addressBalance.chain_stats.spent_txo_sum
- addressBalance.mempool_stats.spent_txo_sum; - addressBalance.mempool_stats.spent_txo_sum;
this.balance += this.addresses[address]; this.balance += this.addresses[address];
this.confirmed += this.addresses[address]; this.confirmed += (addressBalance.chain_stats.funded_txo_sum - addressBalance.chain_stats.spent_txo_sum);
} }
this.addressInfo[address] = addressData[2] ? addressData[2] as AddressInformation : null; this.addressInfo[address] = addressData[2] ? addressData[2] as AddressInformation : null;
} }