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.

project_panel: Fix divider taking too much horizontal space (#44920)

Artem Molonosov0ead4668d2cb
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index ea667ecbb47..a645ae194b1 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -6050,9 +6050,9 @@ impl Render for ProjectPanel {
h_flex()
.w_1_2()
.gap_2()
- .child(Divider::horizontal())
+ .child(div().flex_1().child(Divider::horizontal()))
.child(Label::new("or").size(LabelSize::XSmall).color(Color::Muted))
- .child(Divider::horizontal()),
+ .child(div().flex_1().child(Divider::horizontal())),
)
.child(
Button::new("clone_repo", "Clone Repository")