From 98c7d54ae059eb6542d327142692c2df5c769729 Mon Sep 17 00:00:00 2001 From: edouard Date: Thu, 11 May 2023 13:39:31 +0200 Subject: [PATCH] gui: increase scrollable width --- gui/src/app/view/settings.rs | 9 +++++++-- gui/src/installer/view.rs | 12 ++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/gui/src/app/view/settings.rs b/gui/src/app/view/settings.rs index 14a18061..a2641368 100644 --- a/gui/src/app/view/settings.rs +++ b/gui/src/app/view/settings.rs @@ -565,8 +565,13 @@ pub fn wallet_settings<'a>( Column::new() .push(text("Wallet descriptor:").bold()) .push( - scrollable(text(descriptor.to_owned()).small()).horizontal_scroll( - scrollable::Properties::new().width(2).scroller_width(2), + scrollable( + Column::new() + .push(text(descriptor.to_owned()).small()) + .push(Space::with_height(Length::Units(5))), + ) + .horizontal_scroll( + scrollable::Properties::new().width(5).scroller_width(5), ), ) .push( diff --git a/gui/src/installer/view.rs b/gui/src/installer/view.rs index bceca6a5..48361372 100644 --- a/gui/src/installer/view.rs +++ b/gui/src/installer/view.rs @@ -453,7 +453,7 @@ pub fn signer_xpubs(xpubs: &Vec) -> Element { Container::new( scrollable(Container::new(text(xpub).small()).padding(10)) .horizontal_scroll( - Properties::new().width(2).scroller_width(2), + Properties::new().width(5).scroller_width(5), ), ) .width(Length::Fill), @@ -536,7 +536,7 @@ pub fn hardware_wallet_xpubs<'a>( Container::new( scrollable(Container::new(text(xpub).small()).padding(10)) .horizontal_scroll( - Properties::new().width(2).scroller_width(2), + Properties::new().width(5).scroller_width(5), ), ) .width(Length::Fill), @@ -1161,8 +1161,12 @@ pub fn defined_descriptor_key( .spacing(10) .align_items(Alignment::Center) .push( - scrollable(text(name).bold()) - .horizontal_scroll(Properties::new().width(2).scroller_width(2)), + scrollable( + Column::new() + .push(text(name).bold()) + .push(Space::with_height(Length::Units(5))), + ) + .horizontal_scroll(Properties::new().width(5).scroller_width(5)), ) .push(image::success_mark_icon().width(Length::Units(50))) .push(Space::with_width(Length::Units(1))),