Skip to content

Commit

Permalink
Merge #1412: gui(installer): make edit key modal scrollable
Browse files Browse the repository at this point in the history
47a5d32 gui(installer): make edit key modal scrollable (Michael Mallan)

Pull request description:

  This is to fix #1402 following the suggestion in #1402 (comment).

ACKs for top commit:
  pythcoiner:
    tACK [47a5d32](47a5d32)
  edouardparis:
    ACK 47a5d32

Tree-SHA512: 4bf84e041e4e2ae6cbb7645a75290912d975c7c7312e7779b95f855753dc8000ff6f377b13c85ed69cd68be721fde2998c6c1f3034b92b0dab03a07edc82af68
  • Loading branch information
edouardparis committed Nov 4, 2024
2 parents 103651e + 47a5d32 commit bd3422c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/src/installer/view/editor/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -392,8 +392,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 {
Expand Down

0 comments on commit bd3422c

Please sign in to comment.