History

Fix tab bar drop target sizing (#3627)

This PR fixes an issue where the tab bar drop target was not receiving any size. The styling isn't 100% correct yet, as the updated background color has a gap around it. Release Notes: - N/A

Marshall Bowers committed 2 years ago

Commit 988fb911 parent 226d4921 file · +4 −0Browse files

Unified · Split

crates/workspace2/src/pane.rs+4−0
@@ -1664,6 +1664,10 @@ impl Pane { · 1663 unmodified lines
16641664 )
16651665 .child(
16661666 div()
1667+ .min_w_6()
1668+ // HACK: This empty child is currently necessary to force the drop traget to appear
1669+ // despite us setting a min width above.
1670+ .child("")
16671671 .h_full()
16681672 .flex_grow()
16691673 .drag_over::<DraggedTab>(|bar| {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t