From c67c1911c572e5d66972d37bd996a3beb0ae7c77 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 18 Sep 2023 10:35:02 -0400 Subject: [PATCH] fix: autosize the app list --- cosmic-app-list/src/app.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index a8dcdb20..0c2c8262 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -62,7 +62,7 @@ use url::Url; static MIME_TYPE: &str = "text/uri-list"; pub fn run() -> cosmic::iced::Result { - cosmic::app::applet::run::(false, ()) + cosmic::app::applet::run::(true, ()) } #[derive(Debug, Clone, Default)] @@ -883,7 +883,9 @@ impl cosmic::Application for CosmicAppList { Length::Shrink, dnd_listener(row(favorites)), row(active).into(), - vertical_rule(1).into(), + container(vertical_rule(1)) + .height(self.core.applet_helper.suggested_size().1) + .into(), ) } else { ( @@ -891,7 +893,9 @@ impl cosmic::Application for CosmicAppList { Length::Fill, dnd_listener(column(favorites)), column(active).into(), - divider::horizontal::light().into(), + container(divider::horizontal::light()) + .width(self.core.applet_helper.suggested_size().1) + .into(), ) };