Skip to content

Commit

Permalink
more tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smitbarmase committed Dec 5, 2024
1 parent 5034d66 commit 30d0899
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/zed/src/zed/linux_prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub fn fallback_prompt_renderer(
base_text_style.refine(&TextStyleRefinement {
font_family: Some(settings.ui_font.family.clone()),
font_size: Some(settings.ui_font_size.into()),
color: Some(ui::Color::Muted.color(cx)),
..Default::default()
});
let markdown_style = MarkdownStyle {
Expand Down Expand Up @@ -129,13 +130,11 @@ impl Render for FallbackPromptRenderer {
.child(self.message.clone())
.text_color(ui::Color::Default.color(cx)),
)
.children(self.detail.clone().map(|detail| {
div()
.w_full()
.text_xs()
.text_color(ui::Color::Muted.color(cx))
.child(detail)
}))
.children(
self.detail
.clone()
.map(|detail| div().w_full().text_xs().child(detail)),
)
.child(h_flex().justify_end().gap_2().children(
self.actions.iter().enumerate().rev().map(|(ix, action)| {
ui::Button::new(ix, action.clone())
Expand Down

0 comments on commit 30d0899

Please sign in to comment.