fix: autosize the app list
This commit is contained in:
parent
56d96e5282
commit
c67c1911c5
1 changed files with 7 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ use url::Url;
|
||||||
static MIME_TYPE: &str = "text/uri-list";
|
static MIME_TYPE: &str = "text/uri-list";
|
||||||
|
|
||||||
pub fn run() -> cosmic::iced::Result {
|
pub fn run() -> cosmic::iced::Result {
|
||||||
cosmic::app::applet::run::<CosmicAppList>(false, ())
|
cosmic::app::applet::run::<CosmicAppList>(true, ())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
|
|
@ -883,7 +883,9 @@ impl cosmic::Application for CosmicAppList {
|
||||||
Length::Shrink,
|
Length::Shrink,
|
||||||
dnd_listener(row(favorites)),
|
dnd_listener(row(favorites)),
|
||||||
row(active).into(),
|
row(active).into(),
|
||||||
vertical_rule(1).into(),
|
container(vertical_rule(1))
|
||||||
|
.height(self.core.applet_helper.suggested_size().1)
|
||||||
|
.into(),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(
|
(
|
||||||
|
|
@ -891,7 +893,9 @@ impl cosmic::Application for CosmicAppList {
|
||||||
Length::Fill,
|
Length::Fill,
|
||||||
dnd_listener(column(favorites)),
|
dnd_listener(column(favorites)),
|
||||||
column(active).into(),
|
column(active).into(),
|
||||||
divider::horizontal::light().into(),
|
container(divider::horizontal::light())
|
||||||
|
.width(self.core.applet_helper.suggested_size().1)
|
||||||
|
.into(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue