Skip to content

Commit

Permalink
Fix loading not being centered
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Aug 10, 2024
1 parent 203d195 commit 2a6d9dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/screens/loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ fn show_loading_screen(mut commands: Commands) {
.ui_root()
.insert(StateScoped(Screen::Loading))
.with_children(|children| {
children.label("Loading...");
children.label("Loading...").insert(Style {
justify_content: JustifyContent::Center,
..default()
});
});
}

Expand Down
1 change: 0 additions & 1 deletion src/theme/widgets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ impl<T: Spawn> Widgets for T {
NodeBundle {
style: Style {
width: Px(500.0),
justify_content: JustifyContent::FlexStart,
align_items: AlignItems::Center,
..default()
},
Expand Down

0 comments on commit 2a6d9dc

Please sign in to comment.