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.

Remove double first item border in tabs

Nate Butler591dc9d82a4c
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs
index 69c255ea81f..18a5de1bc19 100644
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@ -1512,7 +1512,13 @@ impl Pane {
this.border_r().ml_px().border_b()
}
}
- cmp::Ordering::Equal => this.border_l().border_r().mb_px(),
+ cmp::Ordering::Equal => {
+ if is_first_item {
+ this.ml_px().border_r().mb_px()
+ } else {
+ this.border_l().border_r().mb_px()
+ }
+ }
}
})
// .hover(|h| h.bg(tab_hover_bg))