Cap command overlay results height at design's 440 px
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user