From 28d1bd87900b5a60ccf8e0adf74746951be50822 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Sat, 12 Aug 2023 17:47:56 -0700 Subject: [PATCH] technically functional tabs, but I want to clean it up --- bin/ui-wtf.rs | 4 ++-- src/ui.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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),