Merge #432: Add scrollable to descriptor in wallet settings

1a251008efa72908fc5a7ffe008e23fe7a47ac39 Add scrollable to descriptor in wallet settings (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 1a251008efa72908fc5a7ffe008e23fe7a47ac39

Tree-SHA512: bf5edb63f49377b17521c223a1aefa4fbd46c0de7f61b25b9168fc69268e99c8c73d8e4117e823deb0519de3491d71763e2fa3c550d33d2629277affccc805e2
This commit is contained in:
edouard 2023-04-12 10:02:50 +02:00
commit 0b5c92e007
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

View File

@ -1,7 +1,11 @@
use std::collections::HashSet;
use std::str::FromStr;
use iced::{alignment, widget::Space, Alignment, Length};
use iced::{
alignment,
widget::{scrollable, Space},
Alignment, Length,
};
use liana::miniscript::bitcoin::{util::bip32::Fingerprint, Network};
@ -549,7 +553,11 @@ pub fn wallet_settings<'a>(
.push(card::simple(
Column::new()
.push(text("Wallet descriptor:").bold())
.push(text(descriptor.to_owned()).small())
.push(
scrollable(text(descriptor.to_owned()).small()).horizontal_scroll(
scrollable::Properties::new().width(2).scroller_width(2),
),
)
.push(
Row::new()
.spacing(10)