workspace: Allow disabling of padding on zoomed panels (#31913)
Screenshot: | Before | After | | -------|------| |  |  | |  |  | Release Notes: - Added `zoomed_padding` to allow disabling of padding around zoomed panels Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
59af2a7d1f
commit
79e74b880b
3 changed files with 17 additions and 0 deletions
|
|
@ -6633,6 +6633,10 @@ impl Render for Workspace {
|
|||
.inset_0()
|
||||
.shadow_lg();
|
||||
|
||||
if !WorkspaceSettings::get_global(cx).zoomed_padding {
|
||||
return Some(div);
|
||||
}
|
||||
|
||||
Some(match self.zoomed_position {
|
||||
Some(DockPosition::Left) => div.right_2().border_r_1(),
|
||||
Some(DockPosition::Right) => div.left_2().border_l_1(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue