diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs index 434ddd737c..75da3bb11f 100644 --- a/crates/assistant2/src/active_thread.rs +++ b/crates/assistant2/src/active_thread.rs @@ -137,7 +137,7 @@ impl ActiveThread { inline_code: TextStyleRefinement { font_family: Some(theme_settings.buffer_font.family.clone()), font_size: Some(buffer_font_size.into()), - background_color: Some(colors.editor_foreground.opacity(0.01)), + background_color: Some(colors.editor_foreground.opacity(0.1)), ..Default::default() }, link: TextStyleRefinement { diff --git a/crates/assistant2/src/message_editor.rs b/crates/assistant2/src/message_editor.rs index 284d01fc6d..bad17d7f10 100644 --- a/crates/assistant2/src/message_editor.rs +++ b/crates/assistant2/src/message_editor.rs @@ -277,7 +277,7 @@ impl Render for MessageEditor { .justify_between() .child(SwitchWithLabel::new( "use-tools", - Label::new("Tools"), + Label::new("Tools").size(LabelSize::Small), self.use_tools.into(), cx.listener(|this, selection, _cx| { this.use_tools = match selection { @@ -293,7 +293,7 @@ impl Render for MessageEditor { ButtonLike::new("chat") .style(ButtonStyle::Filled) .layer(ElevationIndex::ModalSurface) - .child(Label::new("Submit")) + .child(Label::new("Submit").size(LabelSize::Small)) .children( KeyBinding::for_action_in(&Chat, &focus_handle, cx) .map(|binding| binding.into_any_element()), diff --git a/crates/assistant2/src/ui/context_pill.rs b/crates/assistant2/src/ui/context_pill.rs index 093f68dcd2..c6d2d3e7b0 100644 --- a/crates/assistant2/src/ui/context_pill.rs +++ b/crates/assistant2/src/ui/context_pill.rs @@ -86,21 +86,26 @@ impl RenderOnce for ContextPill { .bg(color.element_background) .border_color(color.border.opacity(0.5)) .pr(if on_remove.is_some() { px(2.) } else { px(4.) }) - .child(Label::new(context.name.clone()).size(LabelSize::Small)) - .when_some(context.parent.as_ref(), |element, parent_name| { - if *dupe_name { - element.child( - Label::new(parent_name.clone()) - .size(LabelSize::XSmall) - .color(Color::Muted), - ) - } else { - element - } - }) - .when_some(context.tooltip.clone(), |element, tooltip| { - element.tooltip(move |cx| Tooltip::text(tooltip.clone(), cx)) - }) + .child( + h_flex() + .id("context-data") + .gap_1() + .child(Label::new(context.name.clone()).size(LabelSize::Small)) + .when_some(context.parent.as_ref(), |element, parent_name| { + if *dupe_name { + element.child( + Label::new(parent_name.clone()) + .size(LabelSize::XSmall) + .color(Color::Muted), + ) + } else { + element + } + }) + .when_some(context.tooltip.clone(), |element, tooltip| { + element.tooltip(move |cx| Tooltip::text(tooltip.clone(), cx)) + }), + ) .when_some(on_remove.as_ref(), |element, on_remove| { element.child( IconButton::new(("remove", context.id.0), IconName::Close)