Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui: Fix content shift when selecting last tab (#31266)
Finn Eversd312a13f8ab3
diff --git a/crates/ui/src/components/tab.rs b/crates/ui/src/components/tab.rsindex 71736c46ba5..a205c33358e 100644--- a/crates/ui/src/components/tab.rs+++ b/crates/ui/src/components/tab.rs@@ -154,7 +154,7 @@ impl RenderOnce for Tab {if self.selected {this.border_l_1().border_r_1().pb_px()} else {- this.pr_px().border_b_1().border_r_1()+ this.pl_px().border_b_1().border_r_1()}}TabPosition::Middle(Ordering::Equal) => this.border_l_1().border_r_1().pb_px(),