Ask for explicit Length in center_* methods

This commit is contained in:
Héctor Ramón Jiménez 2024-05-13 17:56:02 +02:00
parent b30d34f728
commit 05f69f495e
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
13 changed files with 40 additions and 41 deletions

View file

@ -277,7 +277,7 @@ fn action<'a, Message: Clone + 'a>(
label: &'a str,
on_press: Option<Message>,
) -> Element<'a, Message> {
let action = button(container(content).center_x().width(30));
let action = button(container(content).center_x(30));
if let Some(on_press) = on_press {
tooltip(