Merge #1412: gui(installer): make edit key modal scrollable
47a5d3218503294065acebaee1add5b7d52d3a81 gui(installer): make edit key modal scrollable (Michael Mallan)
Pull request description:
This is to fix #1402 following the suggestion in https://github.com/wizardsardine/liana/issues/1402#issuecomment-2448730840.
ACKs for top commit:
pythcoiner:
tACK [47a5d32](47a5d32185)
edouardparis:
ACK 47a5d3218503294065acebaee1add5b7d52d3a81
Tree-SHA512: 4bf84e041e4e2ae6cbb7645a75290912d975c7c7312e7779b95f855753dc8000ff6f377b13c85ed69cd68be721fde2998c6c1f3034b92b0dab03a07edc82af68
This commit is contained in:
commit
bd3422ca35
@ -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(
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user