From bd95a853b2eb166a4aa8e32778ed72bb1f8172ad Mon Sep 17 00:00:00 2001 From: Cayle Sharrock Date: Wed, 5 Apr 2023 12:37:30 +0100 Subject: [PATCH] fix: resize transaction tab windows (#5290) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ``` --- .../tari_console_wallet/src/ui/components/transactions_tab.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/tari_console_wallet/src/ui/components/transactions_tab.rs b/applications/tari_console_wallet/src/ui/components/transactions_tab.rs index bcb5cfc655..eb82203ffa 100644 --- a/applications/tari_console_wallet/src/ui/components/transactions_tab.rs +++ b/applications/tari_console_wallet/src/ui/components/transactions_tab.rs @@ -472,8 +472,8 @@ impl Component for TransactionsTab { [ Constraint::Length(3), Constraint::Length(1), - Constraint::Min(10), - Constraint::Length(15), + Constraint::Min(9), + Constraint::Length(16), ] .as_ref(), )