Skip to content

Commit

Permalink
Fix layout shifts in shop UI
Browse files Browse the repository at this point in the history
A bit of a hack, should do a new UI for the explanation box that doesn't
fill up quite as easily.
  • Loading branch information
haihala committed Jul 19, 2024
1 parent 24266c3 commit c2da6e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/lib/src/ui/shop/setup_shop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ fn setup_shop_root(
flex_direction: FlexDirection::Column,
justify_content: JustifyContent::FlexStart,
row_gap: Val::Percent(0.5),

flex_basis: Val::Percent(100.0),
..default()
},
..default()
Expand Down Expand Up @@ -303,6 +305,7 @@ fn setup_info_panel(
background_color: SHOP_DARK_BACKGROUND_COLOR.into(),
style: Style {
padding: UiRect::all(Val::Px(3.0)),
height: Val::Percent(25.0),
..default()
},
..default()
Expand All @@ -322,6 +325,7 @@ fn big_icon(commands: &mut Commands, parent: Entity) -> Entity {
ImageBundle {
style: Style {
width: Val::Px(200.0),
max_width: Val::Px(200.0),
flex_shrink: 0.0,
..default()
},
Expand Down

0 comments on commit c2da6e5

Please sign in to comment.