mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
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:
parent
487edcb12b
commit
b1a61ca21e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user