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.

status_bar: Only show divider for left dock (#24178)

Danilo Leale5c32734863a
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs
index bf6d65c03e9..af52d4dc162 100644
--- a/crates/workspace/src/dock.rs
+++ b/crates/workspace/src/dock.rs
@@ -876,7 +876,7 @@ impl Render for PanelButtons {
h_flex()
.gap_1()
.children(buttons)
- .when(has_buttons, |this| {
+ .when(has_buttons && dock.position == DockPosition::Left, |this| {
this.child(Divider::vertical().color(DividerColor::Border))
})
}