Fix toolbar width (#3681)

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
This commit is contained in:
Marshall Bowers 2023-12-15 14:44:29 -05:00 committed by GitHub
parent 487edcb12b
commit b1a61ca21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(