Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui(installer): make edit key modal scrollable #1412

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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 {
Expand Down
Loading