From 3363da2d1aad4c31f67f4d1bdfa9bed1dde19b10 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Apr 2026 02:02:45 +0000 Subject: [PATCH] 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 --- solitaire_engine/src/settings_plugin.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solitaire_engine/src/settings_plugin.rs b/solitaire_engine/src/settings_plugin.rs index e383bd0..ed9b48d 100644 --- a/solitaire_engine/src/settings_plugin.rs +++ b/solitaire_engine/src/settings_plugin.rs @@ -518,13 +518,15 @@ fn spawn_settings_panel( ZIndex(200), )) .with_children(|root| { - // Inner card + // Inner card — max_height + clip_y keeps it on-screen on small windows. root.spawn(( Node { flex_direction: FlexDirection::Column, padding: UiRect::all(Val::Px(28.0)), row_gap: Val::Px(14.0), min_width: Val::Px(340.0), + max_height: Val::Percent(88.0), + overflow: Overflow::clip_y(), ..default() }, BackgroundColor(Color::srgb(0.11, 0.11, 0.14)),