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 {
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),

@ -36,11 +36,11 @@ fn spawn_nav(events: Query<(Entity, &GameUi), Added<GameUi>>, 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),

Loading…
Cancel
Save