Align everything horizontally

This commit is contained in:
Quentin Boyer 2023-11-12 21:18:52 +01:00
parent d0fcedee2a
commit e88d1be093

View file

@ -238,7 +238,8 @@ where
),
horizontal_rule(LIST_RULE),
text(&format!("Total: {}", self.items.values().sum::<f64>())).size(TEXT_EMPH2)
];
]
.align_items(Alignment::Center);
let overlay = match state.add {
true => Some(
@ -400,7 +401,8 @@ where
self.items.values().flat_map(|(_, v)| v).sum::<f64>()
))
.size(TEXT_EMPH2)
];
]
.align_items(Alignment::Center);
let overlay = match state.modal {
true => Some(
@ -818,6 +820,7 @@ impl Application for Glaurung {
}),
per_person,
]
.align_items(Alignment::Center)
.padding(15),
)
.into()