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.

Fix tab bar drop target sizing (#3627)

Marshall Bowersa874a96e76b8
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs
index 20682451596..afd7e665c45 100644
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@ -1664,6 +1664,10 @@ impl Pane {
)
.child(
div()
+ .min_w_6()
+ // HACK: This empty child is currently necessary to force the drop traget to appear
+ // despite us setting a min width above.
+ .child("")
.h_full()
.flex_grow()
.drag_over::<DraggedTab>(|bar| {