From 9c548a0ec6d8b84e2b3b1ee2a78add5fae7a8ba7 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Wed, 10 Sep 2025 05:17:36 +0530 Subject: [PATCH] workspace: Fix tab bar drop target height when no unpinned tabs present (#37884) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: Screenshot 2025-09-10 at 4 44 18 AM After: Screenshot 2025-09-10 at 4 43 13 AM Release Notes: - Fixed height of the drop background in the tab bar when no unpinned tabs are present. --- crates/workspace/src/pane.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index b3b16acd4fea54a63dc6398c70c52e93ec780023..71a9b89f0a91ea29793c3cfab04bcfbd0e8acc69 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::(|bar, _, _, cx| { bar.bg(cx.theme().colors().drop_target_background)