Fix empty message alignment in `todos` example

This commit is contained in:
Héctor Ramón Jiménez 2020-01-23 15:10:31 +01:00
parent 63fc539a25
commit 7f4ca71125
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ fn loading_message() -> Element<'static, Message> {
fn empty_message(message: &str) -> Element<'static, Message> { fn empty_message(message: &str) -> Element<'static, Message> {
Container::new( Container::new(
Text::new(message) Text::new(message)
.width(Length::Fill)
.size(25) .size(25)
.horizontal_alignment(HorizontalAlignment::Center) .horizontal_alignment(HorizontalAlignment::Center)
.color([0.7, 0.7, 0.7]), .color([0.7, 0.7, 0.7]),