diff --git a/liana-gui/src/app/view/mod.rs b/liana-gui/src/app/view/mod.rs index 7bf9f1575..6ec4f6635 100644 --- a/liana-gui/src/app/view/mod.rs +++ b/liana-gui/src/app/view/mod.rs @@ -194,9 +194,8 @@ pub fn dashboard<'a, T: Into>>( .max_width(1500), Space::with_width(Length::FillPortion(1)), ))) - .center_x() + .center_x(Length::Fill) .style(theme::Container::Background) - .width(Length::Fill) .height(Length::Fill), ) .width(Length::FillPortion(10)), diff --git a/liana-gui/src/app/view/receive.rs b/liana-gui/src/app/view/receive.rs index 90427c024..a7debe0e9 100644 --- a/liana-gui/src/app/view/receive.rs +++ b/liana-gui/src/app/view/receive.rs @@ -231,11 +231,7 @@ pub fn qr_modal<'a>(qr: &'a qr_code::Data, address: &'a String) -> Element<'a, M .push(Space::with_width(Length::Fill)), ) .push(Space::with_height(Length::Fixed(15.0))) - .push( - Container::new(text(address).size(15)) - .width(Length::Fill) - .center_x(), - ) + .push(Container::new(text(address).size(15)).center_x(Length::Fill)) .width(Length::Fill) .max_width(400) .into() diff --git a/liana-gui/src/installer/view/mod.rs b/liana-gui/src/installer/view/mod.rs index afc46a8cd..9f52d7036 100644 --- a/liana-gui/src/installer/view/mod.rs +++ b/liana-gui/src/installer/view/mod.rs @@ -1893,8 +1893,7 @@ pub fn login(progress: (usize, usize), connection_step: Element) -> Ele .push(h2("Liana Connect")) .push(connection_step), ) - .width(Length::Fill) - .center_x(), + .center_x(Length::Fill), true, Some(Message::Previous), ) @@ -2027,17 +2026,12 @@ fn layout<'a>( .push( Row::new() .align_y(Alignment::Center) - .push( - Container::new(prev_button) - .width(Length::FillPortion(2)) - .center_x(), - ) + .push(Container::new(prev_button).center_x(Length::FillPortion(2))) .push(Container::new(h3(title)).width(Length::FillPortion(8))) .push_maybe(if progress.1 > 0 { Some( Container::new(text(format!("{} | {}", progress.0, progress.1))) - .width(Length::FillPortion(2)) - .center_x(), + .center_x(Length::FillPortion(2)), ) } else { None @@ -2065,7 +2059,7 @@ fn layout<'a>( }), ), )) - .center_x() + .center_x(Length::Fill) .height(Length::Fill) .width(Length::Fill) .style(theme::Container::Background) diff --git a/liana-gui/src/launcher.rs b/liana-gui/src/launcher.rs index 42c46bbda..c7c6c9c40 100644 --- a/liana-gui/src/launcher.rs +++ b/liana-gui/src/launcher.rs @@ -305,8 +305,7 @@ impl Launcher { }) .max_width(500), ) - .width(Length::Fill) - .center_x(), + .center_x(Length::Fill), ) .push(Space::with_height(Length::Fixed(100.0))), )) diff --git a/liana-gui/src/lianalite/login.rs b/liana-gui/src/lianalite/login.rs index b74d7bb5c..72ab5af86 100644 --- a/liana-gui/src/lianalite/login.rs +++ b/liana-gui/src/lianalite/login.rs @@ -456,10 +456,8 @@ impl LianaLiteLogin { }), ) .padding(50) - .width(Length::Fill) - .height(Length::Fill) - .center_x() - .center_y(), + .center_x(Length::Fill) + .center_y(Length::Fill), ) .map(Message::View);