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.

workspace: Fix tab bar drop target height when no unpinned tabs present (#37884)

Smit Barmase9c548a0ec6d8
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index b3b16acd4fe..71a9b89f0a9 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -2997,7 +2997,8 @@ impl Pane {
// HACK: This empty child is currently necessary to force the drop target to appear
// despite us setting a min width above.
.child("")
- .h_full()
+ // HACK: h_full doesn't occupy the complete height, using fixed height instead
+ .h(Tab::container_height(cx))
.flex_grow()
.drag_over::<DraggedTab>(|bar, _, _, cx| {
bar.bg(cx.theme().colors().drop_target_background)