Fix aside affecting parent popover height (#11859)
Release Notes: - Fixed the size of the completions menu changing based on the size of the aside ([#11722](https://github.com/zed-industries/zed/issues/11722)). https://github.com/zed-industries/zed/assets/30776250/c67e6fef-20f2-4dc5-92b3-09bb73f874a7 https://github.com/zed-industries/zed/assets/30776250/7467b8ee-6e66-42d7-a8cc-2df11df58c5e --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
4ff1ee126c
commit
d3dfa91254
1 changed files with 7 additions and 3 deletions
|
@ -40,10 +40,14 @@ pub struct Popover {
|
|||
|
||||
impl RenderOnce for Popover {
|
||||
fn render(self, cx: &mut WindowContext) -> impl IntoElement {
|
||||
div()
|
||||
.flex()
|
||||
h_flex()
|
||||
.items_start()
|
||||
.gap_1()
|
||||
.child(v_flex().elevation_2(cx).px_1().children(self.children))
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.child(v_flex().elevation_2(cx).px_1().children(self.children)),
|
||||
)
|
||||
.when_some(self.aside, |this, aside| {
|
||||
this.child(
|
||||
v_flex()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue