Merge #1210: gui: app::view::psbt::change_view() display amount and address 2 rows

ea47088195337580bbc53b322b6632562743ec44 gui: app::view::psbt::change_view() display amount and address in separate rows (pythcoiner)

Pull request description:

  ![image](https://github.com/user-attachments/assets/c0a3ac45-6fee-4661-9521-dfd2c77d8b66)
  close #1192

ACKs for top commit:
  jp1ac4:
    Tested ACK ea47088195337580bbc53b322b6632562743ec44.

Tree-SHA512: b8466638c1cc59ebe3a9568cdd4d98f80f6a797d7bb2e0052e40b62461e7978c353990a5e8d2c31c216c0fb3514ca50b68902fae57f34255eaf265ef9bb5357e
This commit is contained in:
Antoine Poinsot 2024-07-29 13:46:45 +02:00
commit 6c52e28c7e
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -978,9 +978,14 @@ fn change_view(output: &TxOut, network: Network) -> Element<Message> {
let addr = Address::from_script(&output.script_pubkey, network)
.unwrap()
.to_string();
Row::new()
Column::new()
.width(Length::Fill)
.spacing(5)
.push(
Row::new()
.push(Space::with_width(Length::Fill))
.push(amount(&output.value)),
)
.push(
Row::new()
.align_items(Alignment::Center)
@ -999,7 +1004,6 @@ fn change_view(output: &TxOut, network: Network) -> Element<Message> {
),
),
)
.push(amount(&output.value))
.into()
}