diff --git a/src/hud.rs b/src/hud.rs index 685c78c..ba93c53 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -435,10 +435,11 @@ pub fn setup( // Car-Dashboard-Style icons + let dashboard_icon_size = 64.0; let flashlight_visibility = bool2vis(visibility == Visibility::Visible && settings.flashlight_active); let style_dashboard = Style { - width: Val::VMin(6.0), - height: Val::VMin(6.0), + width: Val::Px(dashboard_icon_size), + height: Val::Px(dashboard_icon_size), ..Default::default() }; commands.spawn(( @@ -446,7 +447,7 @@ pub fn setup( style: Style { width: Val::Percent(30.0), height: Val::Percent(100.0), - bottom: Val::VMin(11.0), + bottom: Val::Px(40.0 + icon_size * gauges.len() as f32), left: Val::VMin(4.0), align_items: AlignItems::End, overflow: Overflow::clip(),