Add scrollable to descriptor in wallet settings

This commit is contained in:
edouard 2023-04-10 15:31:11 +02:00
parent 46efdd3664
commit 1a251008ef

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)