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

This commit is contained in:
pythcoiner 2024-07-19 07:00:25 +02:00
parent e81a2d3a9e
commit ea47088195

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()
}