From dd73f923dff1ff4cc9138e7987a684d9c5c1266c Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Mon, 21 Jul 2025 16:14:29 -0700 Subject: [PATCH] Kinda fixed layout issues --- src/bin/trees/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/trees/main.rs b/src/bin/trees/main.rs index c872fe8..901a3a5 100644 --- a/src/bin/trees/main.rs +++ b/src/bin/trees/main.rs @@ -144,6 +144,7 @@ fn init_debug_ui(mut commands: Commands) { flex_direction: FlexDirection::Row, top: Val::Px(25.0), height: Val::Percent(90.0), + width: Val::Percent(80.0), ..default() }, BackgroundColor(BLACK.into()), @@ -153,6 +154,7 @@ fn init_debug_ui(mut commands: Commands) { Node { flex_direction: FlexDirection::Column, height: Val::Percent(100.0), + width: Val::Percent(40.0), overflow: Overflow::scroll_y(), ..default() }, @@ -170,7 +172,7 @@ fn init_debug_ui(mut commands: Commands) { flex_direction: FlexDirection::Column, padding: UiRect::all(Val::Px(10.0)), overflow: Overflow::scroll_y(), - max_width: Val::Percent(50.0), + width: Val::Percent(60.0), ..default() }, BackgroundColor(ORANGE_RED.into()),