mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
revert popover changes
[no ci]
This commit is contained in:
parent
8a35a02863
commit
ab83f4319b
1 changed files with 9 additions and 6 deletions
|
@ -44,18 +44,21 @@ impl RenderOnce for Popover {
|
||||||
type Rendered = Div;
|
type Rendered = Div;
|
||||||
|
|
||||||
fn render(self, cx: &mut WindowContext) -> Self::Rendered {
|
fn render(self, cx: &mut WindowContext) -> Self::Rendered {
|
||||||
div()
|
v_stack()
|
||||||
.flex()
|
.relative()
|
||||||
.flex_none()
|
.elevation_2(cx)
|
||||||
.gap_1()
|
.p_1()
|
||||||
.child(v_stack().elevation_2(cx).p_1().children(self.children))
|
.children(self.children)
|
||||||
.when_some(self.aside, |this, aside| {
|
.when_some(self.aside, |this, aside| {
|
||||||
// TODO: This will statically position the aside to the top right of the popover.
|
// TODO: This will statically position the aside to the top right of the popover.
|
||||||
// We should update this to use gpui2::overlay avoid collisions with the window edges.
|
// We should update this to use gpui2::overlay avoid collisions with the window edges.
|
||||||
this.child(
|
this.child(
|
||||||
v_stack()
|
v_stack()
|
||||||
|
.top_0()
|
||||||
|
.left_full()
|
||||||
|
.ml_1()
|
||||||
|
.absolute()
|
||||||
.elevation_2(cx)
|
.elevation_2(cx)
|
||||||
.flex_1()
|
|
||||||
.bg(cx.theme().colors().surface_background)
|
.bg(cx.theme().colors().surface_background)
|
||||||
.p_1()
|
.p_1()
|
||||||
.child(aside),
|
.child(aside),
|
||||||
|
|
Loading…
Reference in a new issue