diff --git a/bin/ui-wtf.rs b/bin/ui-wtf.rs index bbb8299..dba218d 100644 --- a/bin/ui-wtf.rs +++ b/bin/ui-wtf.rs @@ -76,8 +76,8 @@ fn init_ui(mut commands: Commands) { style: Style { height: Val::Percent(100.0), width: Val::Percent(100.0), - justify_content: JustifyContent::Center, - align_items: AlignItems::Center, + justify_content: JustifyContent::Start, + align_items: AlignItems::Start, ..default() }, background_color: BackgroundColor(Color::GRAY), diff --git a/src/ui.rs b/src/ui.rs index ad4802c..a04e006 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -36,11 +36,11 @@ fn spawn_nav(events: Query<(Entity, &GameUi), Added>, mut commands: Comm flex_direction: FlexDirection::Row, // ? padding: UiRect::all(Val::Px(3.0)), margin: UiRect::all(Val::Px(3.0)), - width: Val::Percent(80.0), - max_height: Val::Percent(80.0), + width: Val::Percent(100.0), + max_height: Val::Percent(100.0), overflow: Overflow::clip(), - justify_content: JustifyContent::Center, - align_items: AlignItems::Center, + justify_content: JustifyContent::Start, + align_items: AlignItems::Start, ..default() }, background_color: BackgroundColor(Color::PURPLE),