technically functional tabs, but I want to clean it up

main
Elijah Voigt 2 years ago
parent 41be0f42bf
commit 28d1bd8790

@ -76,8 +76,8 @@ fn init_ui(mut commands: Commands) {
style: Style { style: Style {
height: Val::Percent(100.0), height: Val::Percent(100.0),
width: Val::Percent(100.0), width: Val::Percent(100.0),
justify_content: JustifyContent::Center, justify_content: JustifyContent::Start,
align_items: AlignItems::Center, align_items: AlignItems::Start,
..default() ..default()
}, },
background_color: BackgroundColor(Color::GRAY), background_color: BackgroundColor(Color::GRAY),

@ -36,11 +36,11 @@ fn spawn_nav(events: Query<(Entity, &GameUi), Added<GameUi>>, mut commands: Comm
flex_direction: FlexDirection::Row, // ? flex_direction: FlexDirection::Row, // ?
padding: UiRect::all(Val::Px(3.0)), padding: UiRect::all(Val::Px(3.0)),
margin: UiRect::all(Val::Px(3.0)), margin: UiRect::all(Val::Px(3.0)),
width: Val::Percent(80.0), width: Val::Percent(100.0),
max_height: Val::Percent(80.0), max_height: Val::Percent(100.0),
overflow: Overflow::clip(), overflow: Overflow::clip(),
justify_content: JustifyContent::Center, justify_content: JustifyContent::Start,
align_items: AlignItems::Center, align_items: AlignItems::Start,
..default() ..default()
}, },
background_color: BackgroundColor(Color::PURPLE), background_color: BackgroundColor(Color::PURPLE),

Loading…
Cancel
Save