fix: Use flexbox helpers

This commit is contained in:
demenik
2025-11-28 13:15:14 +01:00
parent 885bd2aeb0
commit 9a1e7cb95a
3 changed files with 6 additions and 13 deletions

View File

@@ -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![
(