Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "workspace: Disable padding on zoomed panels" (#36884)
Mikayla Makif1204dfc333c
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex bf58786d677..3654df09bea 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -6622,15 +6622,25 @@ impl Render for Workspace {}}).children(self.zoomed.as_ref().and_then(|view| {- Some(div()+ let zoomed_view = view.upgrade()?;+ let div = div().occlude().absolute().overflow_hidden().border_color(colors.border).bg(colors.background)- .child(view.upgrade()?)+ .child(zoomed_view).inset_0()- .shadow_lg())+ .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()+ }+ })})).children(self.render_notifications(window, cx)),)