Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
pane: Fix pin tabs double border not visible when unpinned tab is active (#30367)
Smit Barmase2c602bb0e519
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex 2f452ef2e90..c8129701e91 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -2677,10 +2677,13 @@ impl Pane {// We need to check both because offset returns delta values even when the scroll handle is not scrollablelet is_scrollable = content_width > viewport_width;let is_scrolled = self.tab_bar_scroll_handle.offset().x < px(0.);+ let has_active_unpinned_tab = self.active_item_index >= self.pinned_tab_count;h_flex().children(pinned_tabs).when(is_scrollable && is_scrolled, |this| {- this.border_r_1().border_color(cx.theme().colors().border)+ this.when(has_active_unpinned_tab, |this| this.border_r_2())+ .when(!has_active_unpinned_tab, |this| this.border_r_1())+ .border_color(cx.theme().colors().border)})})).child(