Skip to content

Commit

Permalink
Improve end screen column width distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 4, 2023
1 parent 36dbf2b commit a4c78b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/state/end_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ fn enter_end_screen(mut commands: Commands, root: Res<AppRoot>, config: Res<Conf
width: Val::Percent(100.0),
margin: UiRect::top(vh(10.0)),
border: UiRect::all(config.border_width),
// FIXME: For some reason all the extra space goes to the first column
grid_template_columns: vec![GridTrack::auto(); 4],
grid_template_columns: vec![
GridTrack::auto(),
GridTrack::fr(1.0),
GridTrack::fr(1.0),
GridTrack::fr(1.5),
],
..default()
},
background_color: config.background_color.into(),
Expand Down

0 comments on commit a4c78b0

Please sign in to comment.