Fix toolbar width (#3681)

Marshall Bowers created

This PR fixes an issue with the toolbar width introduced in #3666.

The lack of a flex container was making the toolbar contents not take up
the full width, and thus not positions items correctly along its main
axis.

Release Notes:

- N/A

Change summary

crates/workspace2/src/pane.rs | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

Detailed changes

crates/workspace2/src/pane.rs 🔗

@@ -1897,19 +1897,14 @@ impl Render for Pane {
                     .on_drag_move::<ProjectEntryId>(cx.listener(Self::handle_drag_move))
                     .map(|div| {
                         if let Some(item) = self.active_item() {
-                            div.flex_col()
+                            div.v_flex()
                                 .child(self.toolbar.clone())
                                 .child(item.to_any())
                         } else {
-                            div.flex()
-                                .flex_row()
-                                .items_center()
-                                .size_full()
-                                .justify_center()
-                                .child(
-                                    Label::new("Open a file or project to get started.")
-                                        .color(Color::Muted),
-                                )
+                            div.h_flex().size_full().justify_center().child(
+                                Label::new("Open a file or project to get started.")
+                                    .color(Color::Muted),
+                            )
                         }
                     })
                     .child(