fix(engine): settings panel max_height + overflow clip on small windows

Inner card capped at 88% of window height with Overflow::clip_y so
the panel stays on-screen even when many rows are present. Matches the
same approach used by the leaderboard panel.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-04-27 02:02:45 +00:00
parent 648c5c18d9
commit 3363da2d1a
+3 -1
View File
@@ -518,13 +518,15 @@ fn spawn_settings_panel(
ZIndex(200), ZIndex(200),
)) ))
.with_children(|root| { .with_children(|root| {
// Inner card // Inner card — max_height + clip_y keeps it on-screen on small windows.
root.spawn(( root.spawn((
Node { Node {
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
padding: UiRect::all(Val::Px(28.0)), padding: UiRect::all(Val::Px(28.0)),
row_gap: Val::Px(14.0), row_gap: Val::Px(14.0),
min_width: Val::Px(340.0), min_width: Val::Px(340.0),
max_height: Val::Percent(88.0),
overflow: Overflow::clip_y(),
..default() ..default()
}, },
BackgroundColor(Color::srgb(0.11, 0.11, 0.14)), BackgroundColor(Color::srgb(0.11, 0.11, 0.14)),