diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 979aa2c9bd4aed90176d949ad006304440086efe..7d267ce0c9b9980c6ea5bb9d0552e09c510c7c66 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -1665,16 +1665,7 @@ impl Pane { .when_some(item.tab_tooltip_text(cx), |tab, text| { tab.tooltip(move |cx| Tooltip::text(text.clone(), cx)) }) - .map(|tab| match indicator { - Some(indicator) => tab.start_slot(indicator), - None => tab.start_slot::(icon.map(|icon| { - icon.size(IconSize::XSmall).color(if is_active { - Color::Default - } else { - Color::Muted - }) - })), - }) + .start_slot::(indicator) .end_slot( IconButton::new("close tab", IconName::Close) .shape(IconButtonShape::Square) @@ -1686,7 +1677,18 @@ impl Pane { .detach_and_log_err(cx); })), ) - .child(label); + .child( + h_flex() + .gap_1() + .children(icon.map(|icon| { + icon.size(IconSize::Small).color(if is_active { + Color::Default + } else { + Color::Muted + }) + })) + .child(label), + ); let single_entry_to_resolve = { let item_entries = self.items[ix].project_entry_ids(cx);