Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Show modals on top of zoomed pane (#9183)

Antonio Scandurra8eea28128844
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index e402baad5ed..432d0f2f011 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -3912,7 +3912,6 @@ impl Render for Workspace {
},
)),
)
- .child(self.modal_layer.clone())
.children(self.zoomed.as_ref().and_then(|view| {
let zoomed_view = view.upgrade()?;
let div = div()
@@ -3932,6 +3931,7 @@ impl Render for Workspace {
None => div.top_2().bottom_2().left_2().right_2().border(),
})
}))
+ .child(self.modal_layer.clone())
.children(self.render_notifications(cx)),
)
.child(self.status_bar.clone())