editor: Ensure code actions menu doesn't grow beyond its max size (#35211)

This resolves the same issue as fixed by
https://github.com/zed-industries/zed/pull/34939/commits/d295409f0fc9c1ccd5e06e91c1c5365e96f16486
for the code actions menu.

No release notes since this only occurs on Nightly.

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2025-07-28 21:07:58 +02:00 committed by GitHub
parent 055a9f21a0
commit c3920b806b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -844,7 +844,7 @@ impl CompletionsMenu {
.with_sizing_behavior(ListSizingBehavior::Infer)
.w(rems(34.));
Popover::new().child(div().child(list)).into_any_element()
Popover::new().child(list).into_any_element()
}
fn render_aside(

View file

@ -50,7 +50,7 @@ impl RenderOnce for Popover {
v_flex()
.elevation_2(cx)
.py(POPOVER_Y_PADDING / 2.)
.children(self.children),
.child(div().children(self.children)),
)
.when_some(self.aside, |this, aside| {
this.child(