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.

workspace: Disable padding on zoomed panels (#36012)

Cretezy8366b6ce549d
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index fb78c62f9e8..ba9e3bbb8a9 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -6664,25 +6664,15 @@ impl Render for Workspace {
}
})
.children(self.zoomed.as_ref().and_then(|view| {
- let zoomed_view = view.upgrade()?;
- let div = div()
+ Some(div()
.occlude()
.absolute()
.overflow_hidden()
.border_color(colors.border)
.bg(colors.background)
- .child(zoomed_view)
+ .child(view.upgrade()?)
.inset_0()
- .shadow_lg();
-
- Some(match self.zoomed_position {
- Some(DockPosition::Left) => div.right_2().border_r_1(),
- Some(DockPosition::Right) => div.left_2().border_l_1(),
- Some(DockPosition::Bottom) => div.top_2().border_t_1(),
- None => {
- div.top_2().bottom_2().left_2().right_2().border_1()
- }
- })
+ .shadow_lg())
}))
.children(self.render_notifications(window, cx)),
)