From 47a5d3218503294065acebaee1add5b7d52d3a81 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Thu, 31 Oct 2024 11:09:33 +0000 Subject: [PATCH] gui(installer): make edit key modal scrollable This avoids problems with the "Apply" button when there are many keys to choose from. --- gui/src/installer/view/editor/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/src/installer/view/editor/mod.rs b/gui/src/installer/view/editor/mod.rs index 9b40be05..1cb562f6 100644 --- a/gui/src/installer/view/editor/mod.rs +++ b/gui/src/installer/view/editor/mod.rs @@ -1,6 +1,6 @@ pub mod template; -use iced::widget::{container, pick_list, slider, Button, Space}; +use iced::widget::{container, pick_list, scrollable, slider, Button, Space}; use iced::{Alignment, Length}; use liana::miniscript::bitcoin::Network; @@ -264,7 +264,7 @@ pub fn edit_key_modal<'a>( manually_imported_xpub: bool, duplicate_master_fg: bool, ) -> Element<'a, Message> { - Column::new() + let content = Column::new() .padding(25) .push_maybe(error.map(|e| card::error("Failed to import xpub", e.to_string()))) .push(card::modal( @@ -390,8 +390,8 @@ pub fn edit_key_modal<'a>( ) .align_items(Alignment::Center), )) - .width(Length::Fixed(800.0)) - .into() + .width(Length::Fixed(800.0)); + scrollable(content).into() } fn example_xpub(network: Network) -> String {