workspace: Disable padding on zoomed panels (#36012)

Continuation of https://github.com/zed-industries/zed/pull/31913

| Before | After |
| -------|------|
|
![image](https://github.com/user-attachments/assets/629e7da2-6070-4abb-b469-3b0824524ca4)
|
![image](https://github.com/user-attachments/assets/99e54412-2e0b-4df9-9c40-a89b0411f6d8)
|


Release Notes:

- Disable padding on zoomed panels
This commit is contained in:
Cretezy 2025-08-14 17:46:38 -04:00 committed by GitHub
parent b1e806442a
commit 8366b6ce54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)),
)