From f806087fc89cea8b3c7d78c13536d13cc7c53b57 Mon Sep 17 00:00:00 2001 From: Frederic Laing Date: Thu, 13 Nov 2025 22:26:28 +0100 Subject: [PATCH] address feedback --- src/greeter.rs | 3 ++- src/locker.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/greeter.rs b/src/greeter.rs index f66642c..d917e79 100644 --- a/src/greeter.rs +++ b/src/greeter.rs @@ -947,6 +947,7 @@ impl App { .width(Length::Fill) }; let menu = widget::container(widget::column::with_children(vec![ + widget::Space::with_height(Length::FillPortion(1)).into(), widget::layer_container( iced::widget::row![left_element, right_element].align_y(Alignment::Start), ) @@ -966,7 +967,7 @@ impl App { .class(cosmic::theme::Container::Background) .width(Length::Fixed(800.0)) .into(), - widget::Space::with_height(Length::Fill).into(), + widget::Space::with_height(Length::FillPortion(4)).into(), ])) .width(Length::Fill) .height(Length::Fill) diff --git a/src/locker.rs b/src/locker.rs index fa34f99..7c147c0 100644 --- a/src/locker.rs +++ b/src/locker.rs @@ -584,6 +584,7 @@ impl App { }; widget::container(widget::column::with_children(vec![ + widget::Space::with_height(Length::FillPortion(1)).into(), widget::layer_container( iced::widget::row![left_element, right_element].align_y(Alignment::Start), ) @@ -603,7 +604,7 @@ impl App { .width(Length::Fill) .height(Length::Shrink) .into(), - widget::Space::with_height(Length::Fill).into(), + widget::Space::with_height(Length::FillPortion(4)).into(), ])) .width(Length::Fill) .height(Length::Fill)