Skip to content

Commit 9c548a0

Browse files
authored
workspace: Fix tab bar drop target height when no unpinned tabs present (#37884)
Before: <img width="846" height="192" alt="Screenshot 2025-09-10 at 4 44 18 AM" src="https://github.com/user-attachments/assets/3c79e140-e2b2-4e50-9fce-cb182e46d878" /> After: <img width="846" height="192" alt="Screenshot 2025-09-10 at 4 43 13 AM" src="https://github.com/user-attachments/assets/b5fa853d-ce39-4c81-9773-1d84eebc8cbb" /> Release Notes: - Fixed height of the drop background in the tab bar when no unpinned tabs are present.
1 parent bd0a5dd commit 9c548a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/workspace/src/pane.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2997,7 +2997,8 @@ impl Pane {
29972997
// HACK: This empty child is currently necessary to force the drop target to appear
29982998
// despite us setting a min width above.
29992999
.child("")
3000-
.h_full()
3000+
// HACK: h_full doesn't occupy the complete height, using fixed height instead
3001+
.h(Tab::container_height(cx))
30013002
.flex_grow()
30023003
.drag_over::<DraggedTab>(|bar, _, _, cx| {
30033004
bar.bg(cx.theme().colors().drop_target_background)

0 commit comments

Comments
 (0)