From ad7090aa47caf143956c4c670b23289210188c29 Mon Sep 17 00:00:00 2001 From: "Elijah C. Voigt" Date: Mon, 19 Feb 2024 21:27:56 -0800 Subject: [PATCH] Changed formatting of tutorial text to be the side of the screen Still got some formatting issues, mostly the font size on smaller windows, but that can be addressed later... --- src/tutorial.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tutorial.rs b/src/tutorial.rs index 4c5189e..121ca47 100644 --- a/src/tutorial.rs +++ b/src/tutorial.rs @@ -165,11 +165,11 @@ fn initialize_tutorial( style: Style { width: Val::Percent(100.0), height: Val::Percent(100.0), - justify_content: JustifyContent::FlexEnd, + justify_content: JustifyContent::Center, align_items: AlignItems::FlexEnd, flex_direction: FlexDirection::Column, position_type: PositionType::Absolute, - padding: UiRect::all(Val::Px(50.0)), + padding: UiRect::all(Val::Px(25.0)), ..default() }, background_color: Color::NONE.into(), @@ -184,7 +184,7 @@ fn initialize_tutorial( NodeBundle { style: Style { width: Val::Percent(33.0), - height: Val::Percent(33.0), + max_height: Val::Percent(100.0), padding: UiRect::all(Val::Px(25.0)), ..default() },