Kinda fixed layout issues

main
Elijah Voigt 3 months ago
parent a4dc81b4fb
commit dd73f923df

@ -144,6 +144,7 @@ fn init_debug_ui(mut commands: Commands) {
flex_direction: FlexDirection::Row, flex_direction: FlexDirection::Row,
top: Val::Px(25.0), top: Val::Px(25.0),
height: Val::Percent(90.0), height: Val::Percent(90.0),
width: Val::Percent(80.0),
..default() ..default()
}, },
BackgroundColor(BLACK.into()), BackgroundColor(BLACK.into()),
@ -153,6 +154,7 @@ fn init_debug_ui(mut commands: Commands) {
Node { Node {
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
height: Val::Percent(100.0), height: Val::Percent(100.0),
width: Val::Percent(40.0),
overflow: Overflow::scroll_y(), overflow: Overflow::scroll_y(),
..default() ..default()
}, },
@ -170,7 +172,7 @@ fn init_debug_ui(mut commands: Commands) {
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
padding: UiRect::all(Val::Px(10.0)), padding: UiRect::all(Val::Px(10.0)),
overflow: Overflow::scroll_y(), overflow: Overflow::scroll_y(),
max_width: Val::Percent(50.0), width: Val::Percent(60.0),
..default() ..default()
}, },
BackgroundColor(ORANGE_RED.into()), BackgroundColor(ORANGE_RED.into()),

Loading…
Cancel
Save