From 211b1351af3119bb1ff99dd159ba75a83ad12fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sat, 9 May 2026 20:15:52 -0400 Subject: [PATCH] Cap command overlay results height at design's 440 px MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Design overflow scoping uses maxHeight:440 on the inner results region, not the whole panel. The previous max_h(540) on the panel capped the overall card height (header + results + footer) and let the results expand to fill, which clipped the footer when many sections were visible. Now the panel grows to fit content while the results section caps at 440 px and overflows internally — matches the design's panel-with-scrollable-middle layout exactly. --- crates/ely_app/src/shell/chrome/command_overlay.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ely_app/src/shell/chrome/command_overlay.rs b/crates/ely_app/src/shell/chrome/command_overlay.rs index 8088561..bfed5fb 100644 --- a/crates/ely_app/src/shell/chrome/command_overlay.rs +++ b/crates/ely_app/src/shell/chrome/command_overlay.rs @@ -64,7 +64,6 @@ fn render_panel( div() .w(px(640.0)) - .max_h(px(540.0)) .rounded(px(16.0)) .bg(rgba(PANEL_BG)) .shadow(panel_shadow()) @@ -163,8 +162,7 @@ fn render_results( } div() - .flex_1() - .min_h_0() + .max_h(px(440.0)) .py(px(8.0)) .flex() .flex_col()