Fix size_hint for keyed_column

This commit is contained in:
Héctor Ramón Jiménez 2024-01-09 06:44:15 +01:00
parent d62bb8193c
commit e710e76949
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 27 additions and 28 deletions

View file

@ -254,13 +254,7 @@ impl Application for Todos {
.spacing(20)
.max_width(800);
scrollable(
container(content)
.width(Length::Fill)
.padding(40)
.center_x(),
)
.into()
scrollable(container(content).padding(40).center_x()).into()
}
}
}
@ -472,7 +466,6 @@ fn empty_message(message: &str) -> Element<'_, Message> {
.horizontal_alignment(alignment::Horizontal::Center)
.style(Color::from([0.7, 0.7, 0.7])),
)
.width(Length::Fill)
.height(200)
.center_y()
.into()