forked from nathanwoodburn/firewalletbrowser
feat: Make transactions page nicer for small screens
This commit is contained in:
Binary file not shown.
@@ -178,13 +178,13 @@ def transactions(txs):
|
|||||||
amount = f"<span style='color: gray;'>0.00</span>"
|
amount = f"<span style='color: gray;'>0.00</span>"
|
||||||
|
|
||||||
|
|
||||||
hash = f"<a target='_blank' href='{TX_EXPLORER_URL}{hash}'>{hash[:8]}...</a>"
|
# hash = f"<a target='_blank' href='{TX_EXPLORER_URL}{hash}'>{hash[:8]}...</a>"
|
||||||
if confirmations < 5:
|
if confirmations < 5:
|
||||||
confirmations = f"<td style='background-color: red;'>{confirmations}</td>"
|
confirmations = f"<td class='hide-mobile' style='background-color: red;'>{confirmations}</td>"
|
||||||
else:
|
else:
|
||||||
confirmations = f"<td>{confirmations:,}</td>"
|
confirmations = f"<td class='hide-mobile'>{confirmations:,}</td>"
|
||||||
|
|
||||||
html += f'<tr><td>{humanAction}</td><td>{address}</td><td>{hash}</td>{confirmations}<td class="amount-column">{amount} HNS</td></tr>'
|
html += f'<tr><td><a style="color:var(--bs-body-color);" target="_blank" href="{TX_EXPLORER_URL}{hash}">{humanAction}</a></td><td class="hide-mobile">{address}</td>{confirmations}<td class="amount-column">{amount} HNS</td></tr>'
|
||||||
return html
|
return html
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -82,10 +82,9 @@
|
|||||||
<table id="dataTable" class="table my-0">
|
<table id="dataTable" class="table my-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Action</th>
|
<th>Transaction</th>
|
||||||
<th>Address</th>
|
<th class="hide-mobile">Address</th>
|
||||||
<th>Tx</th>
|
<th class="hide-mobile">Confirmations</th>
|
||||||
<th>Confirmations</th>
|
|
||||||
<th class="amount-column">Amount</th>
|
<th class="amount-column">Amount</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -103,10 +102,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Action</strong></td>
|
<td><strong>Transaction</strong></td>
|
||||||
<td><strong>Address</strong></td>
|
<td class="hide-mobile"><strong>Address</strong></td>
|
||||||
<td><strong>Tx</strong></td>
|
<td class="hide-mobile"><strong>Confirmations</strong></td>
|
||||||
<td><strong>Confirmations</strong></td>
|
|
||||||
<td class="amount-column"><strong>Amount</strong></td>
|
<td class="amount-column"><strong>Amount</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|||||||
Reference in New Issue
Block a user