fix: Use flexbox helpers
This commit is contained in:
@@ -20,11 +20,9 @@ fn setup(mut commands: Commands) {
|
||||
Node {
|
||||
width: percent(100),
|
||||
height: percent(100),
|
||||
justify_content: JustifyContent::Center,
|
||||
align_items: AlignItems::Center,
|
||||
flex_direction: FlexDirection::Column,
|
||||
row_gap: px(10),
|
||||
..default()
|
||||
..Node::center()
|
||||
},
|
||||
children![
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user