Skip to content

Commit

Permalink
Fix HUD/details text node size (#639)
Browse files Browse the repository at this point in the history
The node was (20%, 30%) of the parent node (not the screen).
  • Loading branch information
Indy2222 authored Jul 23, 2023
1 parent e83de90 commit 2cf0417
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/controller/src/hud/details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ fn setup(mut commands: GuiCommands) {
let details_text = commands
.spawn_body_text(
OuterStyle {
size: Size {
width: Val::Percent(20.),
height: Val::Percent(30.),
},
margin: UiRect::all(Val::Percent(5.)),
..default()
},
"",
)
Expand Down

0 comments on commit 2cf0417

Please sign in to comment.