Skip to content

Commit

Permalink
fix: resize transaction tab windows (#5290)
Browse files Browse the repository at this point in the history
PR #4942 added a row to the tx detail view, but did not increase the
size of the box. As a result, the maturity is cut off.

This PR makes the detail box one row wider, and adjusts the minimum size
of the tx box to be 8 (this is the absolute minimum -- accounting for
headers and one each of pending and completed txs).

Fixes #5289

```
Tari Console Wallet────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Transactions │ Send │ Receive │ Contacts │ Network │ Events │ Log │ Notifications                                                 │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌Balance────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Available: 0 µT (Time Locked: 0 µT)                              Pending Incoming: 0 µT           Pending Outgoing: 0 µT           │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 Up↑/Down↓ select Tx (C) cancel selected pending Txs (A) show/hide mining (R) rebroadcast Txs (Esc) exit list
┌Completed (T)ransactions (0) ──────────────────────────────────────────────────────────────────────────────────────────────────────┐
│   Source/Destination Address                                         Amount/Token      Mined At (Local)    Status                 │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
│                                                                                                                                   │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌Transaction Details────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│TxID:                                                                                                                              │
│Source Address:                                                                                                                    │
│Destination address:                                                                                                               │
│Direction:                                                                                                                         │
│Amount:                                                                                                                            │
│Fee:                                                                                                                               │
│Status:                                                                                                                            │
│Message:                                                                                                                           │
│Mined At (Local):                                                                                                                  │
│Imported At (Local):                                                                                                               │
│Excess:                                                                                                                            │
│Confirmations:                                                                                                                     │
│Mined Height:                                                                                                                      │
│Maturity:                                                                                                                          │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 Base Node Status  -  Chain Tip: #12365  Synced.  Latency 562 ms                  Connected Base Node ID: 99999903f5951fa1ca9505c3c2
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Network: stagenet         Version: 0.49.0-pre.5     LeftArrow: Previous Tab  Tab/RightArrow: Next Tab              F10/Ctrl-Q: Quit
 ```
  • Loading branch information
CjS77 authored Apr 5, 2023
1 parent b7f7d31 commit bd95a85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ impl<B: Backend> Component<B> for TransactionsTab {
[
Constraint::Length(3),
Constraint::Length(1),
Constraint::Min(10),
Constraint::Length(15),
Constraint::Min(9),
Constraint::Length(16),
]
.as_ref(),
)
Expand Down

0 comments on commit bd95a85

Please sign in to comment.